parent
d8508415b9
commit
c3fd958ed7
2 changed files with 3 additions and 11 deletions
|
@ -1788,7 +1788,7 @@ Zotero.Keys = new function() {
|
||||||
|
|
||||||
// Get the key=>command mappings from the prefs
|
// Get the key=>command mappings from the prefs
|
||||||
for (let cmd of cmds) {
|
for (let cmd of cmds) {
|
||||||
cmd = cmd.substr(5); // strips 'keys.'
|
cmd = cmd.replace(/^extensions\.zotero\.keys\./, '');
|
||||||
// Remove old pref
|
// Remove old pref
|
||||||
if (cmd == 'overrideGlobal') {
|
if (cmd == 'overrideGlobal') {
|
||||||
Zotero.Prefs.clear('keys.overrideGlobal');
|
Zotero.Prefs.clear('keys.overrideGlobal');
|
||||||
|
|
|
@ -624,11 +624,8 @@ var ZoteroPane = new function()
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var key = String.fromCharCode(event.which);
|
var command = Zotero.Keys.getCommand(event.key);
|
||||||
if (key) {
|
|
||||||
var command = Zotero.Keys.getCommand(key);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (from == 'zotero-collections-tree') {
|
if (from == 'zotero-collections-tree') {
|
||||||
if ((event.keyCode == event.DOM_VK_BACK_SPACE && Zotero.isMac) ||
|
if ((event.keyCode == event.DOM_VK_BACK_SPACE && Zotero.isMac) ||
|
||||||
|
@ -689,11 +686,6 @@ var ZoteroPane = new function()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!key) {
|
|
||||||
Zotero.debug('No key');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!command) {
|
if (!command) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue