fuc-new/doc/node_modules/@vuepress/helper/lib/client/utils/isKeyMatched.d.ts
hellcat 6adbc04d4b 1
2025-10-03 17:17:08 +08:00

13 lines
498 B
TypeScript

import type { KeyOptions } from '../../shared/index.js';
/**
* Check if keyboard event matches any of the provided hotkeys
*
* 检查键盘事件是否匹配提供的任何热键
*
* @param event - Keyboard event / 键盘事件
* @param hotKeys - Array of hotkey configurations / 热键配置数组
*
* @returns Whether the event matches any hotkey / 事件是否匹配任何热键
*/
export declare const isKeyMatched: (event: KeyboardEvent, hotKeys: (KeyOptions | string)[]) => boolean;