修改自定义键盘按键处理逻辑

v1.1.0
于肖磊 2024-12-23 18:30:16 +08:00
parent 7c3aa45864
commit 7a958b8899
1 changed files with 6 additions and 0 deletions

View File

@ -791,6 +791,12 @@ const rect_style = computed(() => {
//#endregion
//#region
const handleKeyUp = (e: KeyboardEvent) => {
//
const default_list = ['textarea', 'input'];
//
if (e.target instanceof HTMLElement && default_list.includes(e.target?.localName)) {
return;
}
let key_code = ['ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight'];
let x = 0;
let y = 0;