Explorar el Código

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

Xwite hace 3 años
padre
commit
0c7b1edc3d
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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 = () => {
+  // hotkeys默认过滤INPUT SELECT TEXTAREA
+  hotkeys.filter = () => true;
   buttons.value.forEach(({ hotKeys, action }) => {
     if (hotKeys.length == 0) return;
     hotkeys(hotKeys.join("+"), (event) => {