Obey Cmd/Ctrl-W in Scaffold, Style Editor, and Run JavaScript windows
This commit is contained in:
parent
c9e90417ee
commit
a086507167
3 changed files with 10 additions and 0 deletions
|
@ -258,4 +258,8 @@
|
||||||
</hbox>
|
</hbox>
|
||||||
|
|
||||||
</vbox>
|
</vbox>
|
||||||
|
|
||||||
|
<keyset>
|
||||||
|
<key id="key_close" key="W" modifiers="accel" oncommand="window.close()"/>
|
||||||
|
</keyset>
|
||||||
</window>
|
</window>
|
||||||
|
|
|
@ -68,6 +68,9 @@ window.addEventListener('keypress', function (event) {
|
||||||
run();
|
run();
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
}
|
}
|
||||||
|
else if (event.key == 'w') {
|
||||||
|
window.close();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
var shortcut = Zotero.isMac ? 'Cmd-R' : 'Ctrl+R';
|
var shortcut = Zotero.isMac ? 'Cmd-R' : 'Ctrl+R';
|
||||||
|
|
|
@ -73,4 +73,7 @@
|
||||||
<iframe id="zotero-csl-preview-box" flex="1" style="padding: 0 1em;background:white" overflow="auto" type="content"/>
|
<iframe id="zotero-csl-preview-box" flex="1" style="padding: 0 1em;background:white" overflow="auto" type="content"/>
|
||||||
</vbox>
|
</vbox>
|
||||||
|
|
||||||
|
<keyset>
|
||||||
|
<key id="key_close" key="W" modifiers="accel" oncommand="window.close()"/>
|
||||||
|
</keyset>
|
||||||
</window>
|
</window>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue