Fix hotkeys detection
This commit is contained in:
parent
a9d08d2646
commit
601bf7ad96
1 changed files with 7 additions and 5 deletions
|
@ -66,12 +66,14 @@ export class HotkeysService {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.zone.run(() => {
|
||||||
const result = hotkey.callback.apply(this, [ event, combo ])
|
const result = hotkey.callback.apply(this, [ event, combo ])
|
||||||
|
|
||||||
if (result === false) {
|
if (result === false) {
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
event.stopPropagation()
|
event.stopPropagation()
|
||||||
}
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue