1
0
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:
Jermolene 2014-09-02 22:09:28 +01:00
parent e34e83db0b
commit f87ce7e98a

View File

@ -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;
};
})();