[beast: 47/70] EBEAST: widgets.js: export symbolic key codes for non-character keys



commit 9120ed9ec3b66d1ceee7c0fa7170e1252a0b1847
Author: Tim Janik <timj gnu org>
Date:   Tue Mar 7 00:42:11 2017 +0100

    EBEAST: widgets.js: export symbolic key codes for non-character keys
    
    Signed-off-by: Tim Janik <timj gnu org>

 ebeast/assets/widgets.js |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/ebeast/assets/widgets.js b/ebeast/assets/widgets.js
new file mode 100644
index 0000000..fe94e1a
--- /dev/null
+++ b/ebeast/assets/widgets.js
@@ -0,0 +1,12 @@
+'use strict';
+
+// == Keys ==
+module.exports.KeyCode = {
+  BACKSPACE: 8, TAB: 9, ENTER: 13, RETURN: 13, CAPITAL: 20, CAPSLOCK: 20, ESC: 27, ESCAPE: 27, SPACE: 32,
+  PAGEUP: 33, PAGEDOWN: 34, END: 35, HOME: 36, LEFT: 37, UP: 38, RIGHT: 39, DOWN: 40, PRINTSCREEN: 44, 
INSERT: 45, DELETE: 46,
+  F1: 112, F2: 113, F3: 114, F4: 115, F5: 116, F6: 117, F7: 118, F8: 119, F9: 120, F10: 121, F11: 122, F12: 
123,
+  F13: 124, F14: 125, F15: 126, F16: 127, F17: 128, F18: 129, F19: 130, F20: 131, F21: 132, F22: 133, F23: 
134, F24: 135,
+  BROWSERBACK: 166, BROWSERFORWARD: 167, PLUS: 187/*FIXME*/, MINUS: 189/*FIXME*/, PAUSE: 230, ALTGR: 255,
+  VOLUMEMUTE: 173, VOLUMEDOWN: 174, VOLUMEUP: 175, MEDIANEXTTRACK: 176, MEDIAPREVIOUSTRACK: 177, MEDIASTOP: 
178, MEDIAPLAYPAUSE: 179,
+};
+


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]