فهرست منبع

fix: add backspace and delete to global keys

Tienson Qin 4 سال پیش
والد
کامیت
2aadcc671f
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/main/frontend/modules/shortcut/core.cljs

+ 1 - 1
src/main/frontend/modules/shortcut/core.cljs

@@ -29,7 +29,7 @@
      (mapv mod-key))))
 
 (def global-keys #js
-  [KeyCodes/ENTER KeyCodes/TAB
+  [KeyCodes/ENTER KeyCodes/TAB KeyCodes/BACKSPACE KeyCodes/DELETE
    KeyCodes/UP KeyCodes/LEFT KeyCodes/DOWN KeyCodes/RIGHT])
 
 (defn install-shortcut!