Browse Source

Example of long hold

Holding down Esc now shows the exit dialog from wherever you are.
Tobias Hieta 9 years ago
parent
commit
56cfd005e0
1 changed files with 4 additions and 2 deletions
  1. 4 2
      resources/inputmaps/keyboard.json

+ 4 - 2
resources/inputmaps/keyboard.json

@@ -9,8 +9,10 @@
     "(Shift\\+)?Up": "up",
     "(Shift\\+)?Down": "down",
     "(Return|Enter)": "enter",
-    "Space": "space",
-    "(Esc|Backspace)": "back",
+    "(Esc|Backspace)": {
+      "short": "back",
+      "long": "exitDialog"
+    },
 
     // map X and Shift+X to X. This allows normal number input
     "(?:Shift\\+)?([0-9])": "%1",