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>
|
||||
|
||||
</vbox>
|
||||
|
||||
<keyset>
|
||||
<key id="key_close" key="W" modifiers="accel" oncommand="window.close()"/>
|
||||
</keyset>
|
||||
</window>
|
||||
|
|
|
@ -68,6 +68,9 @@ window.addEventListener('keypress', function (event) {
|
|||
run();
|
||||
event.stopPropagation();
|
||||
}
|
||||
else if (event.key == 'w') {
|
||||
window.close();
|
||||
}
|
||||
});
|
||||
|
||||
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"/>
|
||||
</vbox>
|
||||
|
||||
<keyset>
|
||||
<key id="key_close" key="W" modifiers="accel" oncommand="window.close()"/>
|
||||
</keyset>
|
||||
</window>
|
||||
|
|
Loading…
Reference in a new issue