Fix copy hotkey not working (#1411)

This commit is contained in:
toasted-nutbread 2021-02-16 21:19:43 -05:00 committed by GitHub
parent 3a86601c88
commit 6fc5eb2ae1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -173,8 +173,7 @@ class HotkeyHandler extends EventDispatcher {
const hotkeyInfo = this._hotkeys.get(key);
if (typeof hotkeyInfo !== 'undefined') {
const eventModifiers = DocumentUtil.getActiveModifiers(e);
const canForward = (this._forwardFrameId !== null);
if (this._invokeHandlers(key, eventModifiers, hotkeyInfo, canForward)) {
if (this._invokeHandlers(key, eventModifiers, hotkeyInfo, false)) {
e.preventDefault();
return;
}