1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-05-15 22:59:41 +02:00

fix reading of keymap setting

This commit is contained in:
Kushagra Gour 2017-03-12 20:21:21 +05:30
parent ea5d1872db
commit c31c9dd948

View File

@ -1230,7 +1230,7 @@ onboardDontShowInTabOptionBtn, TextareaAutoComplete, savedItemCountEl */
// Replace correct css file in LINK tags's href // Replace correct css file in LINK tags's href
editorThemeLinkTag.href = '/lib/codemirror/theme/' + prefs.editorTheme + '.css'; editorThemeLinkTag.href = '/lib/codemirror/theme/' + prefs.editorTheme + '.css';
scope.cm[type].setOption('keyMap', $('[data-setting=keymap]').value); scope.cm[type].setOption('keyMap', $('[data-setting=keymap]:checked').value);
scope.cm[type].refresh(); scope.cm[type].refresh();
}); });
}; };