fix keyboard shortcut handling for default shortcuts
This commit is contained in:
parent
0dbd5b456c
commit
ae6575043e
@ -186,17 +186,17 @@ export class KeyboardHandler extends KbmBase {
|
|||||||
|
|
||||||
isActionMatchStandard(shortcut, event) {
|
isActionMatchStandard(shortcut, event) {
|
||||||
return shortcut.key === event.key &&
|
return shortcut.key === event.key &&
|
||||||
shortcut.ctrlKey === event.ctrlKey &&
|
!!shortcut.ctrlKey === event.ctrlKey &&
|
||||||
shortcut.metaKey === event.metaKey &&
|
!!shortcut.metaKey === event.metaKey &&
|
||||||
shortcut.altKey === event.altKey &&
|
!!shortcut.altKey === event.altKey &&
|
||||||
shortcut.shiftKey === event.shiftKey
|
!!shortcut.shiftKey === event.shiftKey;
|
||||||
}
|
}
|
||||||
isActionMatchKeyCode(shortcut, event) {
|
isActionMatchKeyCode(shortcut, event) {
|
||||||
return shortcut.code === event.code &&
|
return shortcut.code === event.code &&
|
||||||
shortcut.ctrlKey === event.ctrlKey &&
|
!!shortcut.ctrlKey === event.ctrlKey &&
|
||||||
shortcut.metaKey === event.metaKey &&
|
!!shortcut.metaKey === event.metaKey &&
|
||||||
shortcut.altKey === event.altKey &&
|
!!shortcut.altKey === event.altKey &&
|
||||||
shortcut.shiftKey === event.shiftKey
|
!!shortcut.shiftKey === event.shiftKey
|
||||||
}
|
}
|
||||||
|
|
||||||
isActionMatch(shortcut, event, isLatin = true) {
|
isActionMatch(shortcut, event, isLatin = true) {
|
||||||
|
Loading…
Reference in New Issue
Block a user