diff --git a/core/modules/utils/dom/keyboard.js b/core/modules/utils/dom/keyboard.js index cc0736962..fda8e012a 100644 --- a/core/modules/utils/dom/keyboard.js +++ b/core/modules/utils/dom/keyboard.js @@ -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; }; })();