mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-12 11:55:26 +08:00
f0385d7c24
* feat: tree * refactor: select * refactor: select * refactor: select * refactor: vc-tree-select * refactor: tree-select * refactor: tree-select * feat: add showLeafIcon * refactor: remove lod vc-tree-select * feat: tree-select add tag-render * refactor: cascader * refactor: cascader * refactor: cascader * refactor: cascader * fix: maxTagmaxTagPlaceholder not work
35 lines
698 B
TypeScript
35 lines
698 B
TypeScript
import KeyCode from '../../_util/KeyCode';
|
|
|
|
/** keyCode Judgment function */
|
|
export function isValidateOpenKey(currentKeyCode: number): boolean {
|
|
return ![
|
|
// System function button
|
|
KeyCode.ESC,
|
|
KeyCode.SHIFT,
|
|
KeyCode.BACKSPACE,
|
|
KeyCode.TAB,
|
|
KeyCode.WIN_KEY,
|
|
KeyCode.ALT,
|
|
KeyCode.META,
|
|
KeyCode.WIN_KEY_RIGHT,
|
|
KeyCode.CTRL,
|
|
KeyCode.SEMICOLON,
|
|
KeyCode.EQUALS,
|
|
KeyCode.CAPS_LOCK,
|
|
KeyCode.CONTEXT_MENU,
|
|
// F1-F12
|
|
KeyCode.F1,
|
|
KeyCode.F2,
|
|
KeyCode.F3,
|
|
KeyCode.F4,
|
|
KeyCode.F5,
|
|
KeyCode.F6,
|
|
KeyCode.F7,
|
|
KeyCode.F8,
|
|
KeyCode.F9,
|
|
KeyCode.F10,
|
|
KeyCode.F11,
|
|
KeyCode.F12,
|
|
].includes(currentKeyCode);
|
|
}
|