Browse Source

fix: add backspace and delete to global keys

Tienson Qin 4 years ago
parent
commit
2aadcc671f
1 changed files with 1 additions and 1 deletions
  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))))
      (mapv mod-key))))
 
 
 (def global-keys #js
 (def global-keys #js
-  [KeyCodes/ENTER KeyCodes/TAB
+  [KeyCodes/ENTER KeyCodes/TAB KeyCodes/BACKSPACE KeyCodes/DELETE
    KeyCodes/UP KeyCodes/LEFT KeyCodes/DOWN KeyCodes/RIGHT])
    KeyCodes/UP KeyCodes/LEFT KeyCodes/DOWN KeyCodes/RIGHT])
 
 
 (defn install-shortcut!
 (defn install-shortcut!