restore Shift-Ctrl-Wheel to scroll window in multi-section mode (#1005)
This commit is contained in:
parent
837b119e47
commit
c43315e697
|
@ -34,7 +34,8 @@ function createSectionsEditor({style, onTitleChanged}) {
|
|||
$('#from-mozilla').addEventListener('click', () => showMozillaFormatImport());
|
||||
$('#save-button').addEventListener('click', saveStyle);
|
||||
|
||||
document.addEventListener('wheel', scrollEntirePageOnCtrlShift);
|
||||
document.addEventListener('wheel', scrollEntirePageOnCtrlShift, {passive: false});
|
||||
CodeMirror.defaults.extraKeys['Shift-Ctrl-Wheel'] = 'scrollWindow';
|
||||
|
||||
if (!FIREFOX) {
|
||||
$$([
|
||||
|
|
|
@ -10,7 +10,6 @@ function showKeyMapHelp() {
|
|||
const keyMap = mergeKeyMaps({}, prefs.get('editor.keyMap'), CodeMirror.defaults.extraKeys);
|
||||
const keyMapSorted = Object.keys(keyMap)
|
||||
.map(key => ({key, cmd: keyMap[key]}))
|
||||
.concat([{key: 'Shift-Ctrl-Wheel', cmd: 'scrollWindow'}])
|
||||
.sort((a, b) => (a.cmd < b.cmd || (a.cmd === b.cmd && a.key < b.key) ? -1 : 1));
|
||||
const table = template.keymapHelp.cloneNode(true);
|
||||
const tBody = table.tBodies[0];
|
||||
|
|
Loading…
Reference in New Issue
Block a user