mirror of
https://github.com/marktext/marktext.git
synced 2025-05-04 06:50:20 +08:00
parent
f3caf90920
commit
c7060934ce
@ -8,6 +8,7 @@ import { isFile2 } from 'common/filesystem'
|
|||||||
import { isOsx } from '../config'
|
import { isOsx } from '../config'
|
||||||
import { getKeyboardLanguage, getVirtualLetters } from '../keyboard'
|
import { getKeyboardLanguage, getVirtualLetters } from '../keyboard'
|
||||||
|
|
||||||
|
const tabSwitchBaseStroke = (isOsx) ? 'Ctrl' : 'Alt'
|
||||||
// Problematic key bindings:
|
// Problematic key bindings:
|
||||||
// Aidou: Ctrl+/ -> dead key
|
// Aidou: Ctrl+/ -> dead key
|
||||||
// Inline Code: Ctrl+` -> dead key
|
// Inline Code: Ctrl+` -> dead key
|
||||||
@ -111,16 +112,16 @@ class Keybindings {
|
|||||||
['tabs.cycle-backward', 'CmdOrCtrl+Shift+Tab'],
|
['tabs.cycle-backward', 'CmdOrCtrl+Shift+Tab'],
|
||||||
['tabs.switch-to-left', 'CmdOrCtrl+PageUp'],
|
['tabs.switch-to-left', 'CmdOrCtrl+PageUp'],
|
||||||
['tabs.switch-to-right', 'CmdOrCtrl+PageDown'],
|
['tabs.switch-to-right', 'CmdOrCtrl+PageDown'],
|
||||||
['tabs.switch-to-first', 'Alt+1'],
|
['tabs.switch-to-first', `${tabSwitchBaseStroke}+1`],
|
||||||
['tabs.switch-to-second', 'Alt+2'],
|
['tabs.switch-to-second', `${tabSwitchBaseStroke}+2`],
|
||||||
['tabs.switch-to-third', 'Alt+3'],
|
['tabs.switch-to-third', `${tabSwitchBaseStroke}+3`],
|
||||||
['tabs.switch-to-fourth', 'Alt+4'],
|
['tabs.switch-to-fourth', `${tabSwitchBaseStroke}+4`],
|
||||||
['tabs.switch-to-fifth', 'Alt+5'],
|
['tabs.switch-to-fifth', `${tabSwitchBaseStroke}+5`],
|
||||||
['tabs.switch-to-sixth', 'Alt+6'],
|
['tabs.switch-to-sixth', `${tabSwitchBaseStroke}+6`],
|
||||||
['tabs.switch-to-seventh', 'Alt+7'],
|
['tabs.switch-to-seventh', `${tabSwitchBaseStroke}+7`],
|
||||||
['tabs.switch-to-eighth', 'Alt+8'],
|
['tabs.switch-to-eighth', `${tabSwitchBaseStroke}+8`],
|
||||||
['tabs.switch-to-ninth', 'Alt+9'],
|
['tabs.switch-to-ninth', `${tabSwitchBaseStroke}+9`],
|
||||||
['tabs.switch-to-tenth', 'Alt+0'],
|
['tabs.switch-to-tenth', `${tabSwitchBaseStroke}+0`],
|
||||||
['file.quick-open', 'CmdOrCtrl+P']
|
['file.quick-open', 'CmdOrCtrl+P']
|
||||||
])
|
])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user