Merge pull request #127 from tophf/keymap-default-fix

Editor: set OS-dependent default keymap consistently
This commit is contained in:
Jason Barnabe 2015-06-19 21:39:27 -05:00
commit f97989877f
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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'",