修复游戏接受不到键盘事件的bug

This commit is contained in:
xu_yanfeng 2025-02-07 14:49:41 +08:00
parent 039fc604f5
commit 930397f467

View File

@ -236,8 +236,6 @@ export default defineComponent({
const picking = ref(false); const picking = ref(false);
const pickShortFunc = (e: KeyboardEvent) => { const pickShortFunc = (e: KeyboardEvent) => {
e.preventDefault();
e.stopPropagation();
if (e.key === PickShortKey && picking.value === false) { if (e.key === PickShortKey && picking.value === false) {
doInspector(); doInspector();
} }