Editor: set OS-dependent default keymap consistently
This commit is contained in:
parent
761b5bd7d9
commit
ac88689533
2
edit.js
2
edit.js
|
@ -138,7 +138,7 @@ function initCodeMirror() {
|
|||
lint: CodeMirror.lint.css,
|
||||
styleActiveLine: true,
|
||||
theme: "default",
|
||||
keyMap: isWindowsOS ? "sublime" : "default",
|
||||
keyMap: prefs.getPref("editor.keyMap"),
|
||||
extraKeys: { // independent of current keyMap
|
||||
"Alt-PageDown": "nextEditor",
|
||||
"Alt-PageUp": "prevEditor"
|
||||
|
|
|
@ -178,7 +178,7 @@ var prefs = {
|
|||
"editor.smartIndent": true, // "smart" indent
|
||||
"editor.indentWithTabs": false,// smart indent with tabs
|
||||
"editor.tabSize": 4, // tab width, in spaces
|
||||
"editor.keyMap": "sublime", // keymap
|
||||
"editor.keyMap": navigator.appVersion.indexOf("Windows") > 0 ? "sublime" : "default",
|
||||
"editor.theme": "default", // CSS theme
|
||||
|
||||
NO_DEFAULT_PREFERENCE: "No default preference for '%s'",
|
||||
|
|
Loading…
Reference in New Issue
Block a user