From 8537a7a5d0fdbe482fe42a06861a44827321d9ec Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Mon, 24 Apr 2023 10:34:11 +0100 Subject: [PATCH] Handle mode: 'none' in keybindings (#12717) GitOrigin-RevId: 77d040352b1de2311f663a8b33bd0d20d79a30ae --- .../js/features/source-editor/extensions/keybindings.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/web/frontend/js/features/source-editor/extensions/keybindings.ts b/services/web/frontend/js/features/source-editor/extensions/keybindings.ts index 02544251e1..26743a8939 100644 --- a/services/web/frontend/js/features/source-editor/extensions/keybindings.ts +++ b/services/web/frontend/js/features/source-editor/extensions/keybindings.ts @@ -198,6 +198,10 @@ export const keybindings = () => { export const setKeybindings = async ( selectedKeybindings = 'default' ): Promise => { + if (selectedKeybindings === 'none') { + selectedKeybindings = 'default' + } + const selectedOption = options.find( option => option.name === selectedKeybindings )