Explorar o código

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

Xwite %!s(int64=3) %!d(string=hai) anos
pai
achega
0c7b1edc3d
Modificáronse 1 ficheiros con 2 adicións e 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) => {