Fix copy hotkey not working (#1411)
This commit is contained in:
parent
3a86601c88
commit
6fc5eb2ae1
@ -173,8 +173,7 @@ class HotkeyHandler extends EventDispatcher {
|
|||||||
const hotkeyInfo = this._hotkeys.get(key);
|
const hotkeyInfo = this._hotkeys.get(key);
|
||||||
if (typeof hotkeyInfo !== 'undefined') {
|
if (typeof hotkeyInfo !== 'undefined') {
|
||||||
const eventModifiers = DocumentUtil.getActiveModifiers(e);
|
const eventModifiers = DocumentUtil.getActiveModifiers(e);
|
||||||
const canForward = (this._forwardFrameId !== null);
|
if (this._invokeHandlers(key, eventModifiers, hotkeyInfo, false)) {
|
||||||
if (this._invokeHandlers(key, eventModifiers, hotkeyInfo, canForward)) {
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user