mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-28 11:00:27 +00:00
Fix tiddler keyboard shortcuts
Maddeningly, I broke them in 5.0.16-beta…
This commit is contained in:
parent
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;
|
||||
};
|
||||
|
||||
})();
|
||||
|
Loading…
Reference in New Issue
Block a user