From 7b543ec2c15dada9272ac7225e71a1d0a190ad75 Mon Sep 17 00:00:00 2001 From: QiShaoXuan Date: Wed, 3 Aug 2022 18:01:00 +0800 Subject: [PATCH] fix: fixed #19 --- .../editor-core/src/editor/keyboard/keyboard.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/libs/components/editor-core/src/editor/keyboard/keyboard.ts b/libs/components/editor-core/src/editor/keyboard/keyboard.ts index 751e888588..04d663ea30 100644 --- a/libs/components/editor-core/src/editor/keyboard/keyboard.ts +++ b/libs/components/editor-core/src/editor/keyboard/keyboard.ts @@ -35,20 +35,6 @@ export class KeyboardManager { } this.handler_map = {}; - // WARNING: Remove the filter of hotkeys, the input event of input/select/textarea will be filtered out by default - // When there is a problem with the input of the text component, you need to pay attention to this - const old_filter = HotKeys.filter; - HotKeys.filter = event => { - let parent = (event.target as Element).parentElement; - while (parent) { - if (parent === editor.container) { - return old_filter(event); - } - parent = parent.parentElement; - } - - return true; - }; HotKeys.setScope('editor'); // this.init_common_shortcut_cb();