mirror of
https://github.com/purocean/yn.git
synced 2026-09-24 15:46:02 +08:00
修正快捷键判断问题
This commit is contained in:
@@ -76,7 +76,7 @@ export function isAction (e: KeyboardEvent | MouseEvent, name: ActionName): bool
|
||||
export function isAction (e: KeyboardEvent | MouseEvent, name: string): boolean
|
||||
export function isAction (e: KeyboardEvent | MouseEvent, name: string) {
|
||||
logger.debug('isAction', name, e)
|
||||
return matchKeys(e, actions[name])
|
||||
return !!actions[name] && matchKeys(e, actions[name])
|
||||
}
|
||||
|
||||
export function getActionLabel (name: ActionName): string
|
||||
|
||||
Reference in New Issue
Block a user