Explorar o código

Handle mode: 'none' in keybindings (#12717)

GitOrigin-RevId: 77d040352b1de2311f663a8b33bd0d20d79a30ae
Alf Eaton %!s(int64=3) %!d(string=hai) anos
pai
achega
8537a7a5d0

+ 4 - 0
services/web/frontend/js/features/source-editor/extensions/keybindings.ts

@@ -198,6 +198,10 @@ export const keybindings = () => {
 export const setKeybindings = async (
   selectedKeybindings = 'default'
 ): Promise<TransactionSpec> => {
+  if (selectedKeybindings === 'none') {
+    selectedKeybindings = 'default'
+  }
+
   const selectedOption = options.find(
     option => option.name === selectedKeybindings
   )