kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Fix tiddler keyboard shortcuts
Maddeningly, I broke them in 5.0.16-beta…print-window-tiddler
rodzic
e34e83db0b
commit
f87ce7e98a
|
@ -60,11 +60,12 @@ exports.parseKeyDescriptor = function(keyDescriptor) {
|
|||
};
|
||||
|
||||
exports.checkKeyDescriptor = function(event,keyInfo) {
|
||||
var metaKeyStatus = !!keyInfo.metaKey; // Using a temporary variable to keep JSHint happy
|
||||
return event.keyCode === keyInfo.keyCode &&
|
||||
event.shiftKey === keyInfo.shiftKey &&
|
||||
event.altKey === keyInfo.altKey &&
|
||||
event.ctrlKey === keyInfo.ctrlKey &&
|
||||
event.metaKey === keyInfo.metaKey;
|
||||
event.metaKey === metaKeyStatus;
|
||||
};
|
||||
|
||||
})();
|
||||
|
|
Ładowanie…
Reference in New Issue