Jelajahi Sumber

web快捷键取消默认过滤INPUT SELECT TEXTAREA

Xwite 3 tahun lalu
induk
melakukan
0c7b1edc3d
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  1. 2 0
      modules/web/src/components/ToolBar.vue

+ 2 - 0
modules/web/src/components/ToolBar.vue

@@ -273,6 +273,8 @@ const saveHotKeys = () => {
 };
 };
 
 
 const bindHotKeys = () => {
 const bindHotKeys = () => {
+  // hotkeys默认过滤INPUT SELECT TEXTAREA
+  hotkeys.filter = () => true;
   buttons.value.forEach(({ hotKeys, action }) => {
   buttons.value.forEach(({ hotKeys, action }) => {
     if (hotKeys.length == 0) return;
     if (hotKeys.length == 0) return;
     hotkeys(hotKeys.join("+"), (event) => {
     hotkeys(hotKeys.join("+"), (event) => {