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) {
|
||||
return shortcut.key === event.key &&
|
||||
shortcut.ctrlKey === event.ctrlKey &&
|
||||
shortcut.metaKey === event.metaKey &&
|
||||
shortcut.altKey === event.altKey &&
|
||||
shortcut.shiftKey === event.shiftKey
|
||||
!!shortcut.ctrlKey === event.ctrlKey &&
|
||||
!!shortcut.metaKey === event.metaKey &&
|
||||
!!shortcut.altKey === event.altKey &&
|
||||
!!shortcut.shiftKey === event.shiftKey;
|
||||
}
|
||||
isActionMatchKeyCode(shortcut, event) {
|
||||
return shortcut.code === event.code &&
|
||||
shortcut.ctrlKey === event.ctrlKey &&
|
||||
shortcut.metaKey === event.metaKey &&
|
||||
shortcut.altKey === event.altKey &&
|
||||
shortcut.shiftKey === event.shiftKey
|
||||
!!shortcut.ctrlKey === event.ctrlKey &&
|
||||
!!shortcut.metaKey === event.metaKey &&
|
||||
!!shortcut.altKey === event.altKey &&
|
||||
!!shortcut.shiftKey === event.shiftKey
|
||||
}
|
||||
|
||||
isActionMatch(shortcut, event, isLatin = true) {
|
||||
|
Loading…
Reference in New Issue
Block a user