Răsfoiți Sursa

Merge pull request #25149 from overleaf/ae-disable-toggletabfocusmode

Disable toggleTabFocusMode

GitOrigin-RevId: 7f9f9a1a57e6656a3bd03c1986ae6e4d3be71f84
Alf Eaton 1 an în urmă
părinte
comite
14c82ac94d

+ 2 - 0
services/web/frontend/js/features/source-editor/extensions/keymaps.ts

@@ -20,6 +20,8 @@ const ignoredDefaultMacKeybindings = new Set([
   // We replace these with our custom visual-line versions
   'Mod-Backspace',
   'Mod-Delete',
+  // Disable toggleTabFocusMode as it conflicts with ” on a Swedish keyboard layout
+  'Shift-Alt-m',
 ])
 
 const filteredDefaultKeymap = defaultKeymap.filter(

+ 2 - 2
services/web/frontend/js/features/source-editor/extensions/shortcuts.ts

@@ -46,11 +46,11 @@ export const shortcuts = Prec.high(
   keymap.of([
     {
       key: 'Tab',
-      run: indentMore,
+      run: indentMore, // note: not using indentWithTab as the user may want to insert tab spaces within a line
     },
     {
       key: 'Shift-Tab',
-      run: indentLess,
+      run: indentLess, // note: not using indentWithTab as the user may want to insert tab spaces within a line
     },
     {
       key: 'Mod-y',