Editor: set OS-dependent default keymap consistently

This commit is contained in:
tophf 2015-06-10 12:58:01 +03:00
parent 761b5bd7d9
commit ac88689533
2 changed files with 2 additions and 2 deletions

View File

@ -138,7 +138,7 @@ function initCodeMirror() {
lint: CodeMirror.lint.css, lint: CodeMirror.lint.css,
styleActiveLine: true, styleActiveLine: true,
theme: "default", theme: "default",
keyMap: isWindowsOS ? "sublime" : "default", keyMap: prefs.getPref("editor.keyMap"),
extraKeys: { // independent of current keyMap extraKeys: { // independent of current keyMap
"Alt-PageDown": "nextEditor", "Alt-PageDown": "nextEditor",
"Alt-PageUp": "prevEditor" "Alt-PageUp": "prevEditor"

View File

@ -178,7 +178,7 @@ var prefs = {
"editor.smartIndent": true, // "smart" indent "editor.smartIndent": true, // "smart" indent
"editor.indentWithTabs": false,// smart indent with tabs "editor.indentWithTabs": false,// smart indent with tabs
"editor.tabSize": 4, // tab width, in spaces "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 "editor.theme": "default", // CSS theme
NO_DEFAULT_PREFERENCE: "No default preference for '%s'", NO_DEFAULT_PREFERENCE: "No default preference for '%s'",