diff options
| author | jaguillo | 2015-10-11 15:30:39 +0200 |
|---|---|---|
| committer | jaguillo | 2015-10-11 15:30:39 +0200 |
| commit | 03cc0a54297a758f0ba0f1a7ba8aed0040413a5c (patch) | |
| tree | f286abcd348a1957b91eb3b574e8130eb0442d86 /srcs/juloo.keyboard2/KeyValue.java | |
| parent | 549c753450be61fdd267904e5b34666e8318b79f (diff) | |
| download | unexpected-keyboard-03cc0a54297a758f0ba0f1a7ba8aed0040413a5c.tar.gz unexpected-keyboard-03cc0a54297a758f0ba0f1a7ba8aed0040413a5c.zip | |
Key to switch to numeric pane
Diffstat (limited to 'srcs/juloo.keyboard2/KeyValue.java')
| -rw-r--r-- | srcs/juloo.keyboard2/KeyValue.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/srcs/juloo.keyboard2/KeyValue.java b/srcs/juloo.keyboard2/KeyValue.java index 22ac90e..33b78aa 100644 --- a/srcs/juloo.keyboard2/KeyValue.java +++ b/srcs/juloo.keyboard2/KeyValue.java @@ -8,6 +8,8 @@ class KeyValue { public static final int EVENT_NONE = -1; public static final int EVENT_CONFIG = -2; + public static final int EVENT_SWITCH_TEXT = -3; + public static final int EVENT_SWITCH_NUMERIC = -4; public static final char CHAR_NONE = '\0'; public static final int FLAG_KEEP_ON = 1; @@ -164,7 +166,10 @@ class KeyValue new KeyValue("8", null, '8', KeyEvent.KEYCODE_8, 0); new KeyValue("9", null, '9', KeyEvent.KEYCODE_9, 0); - new KeyValue("config", "Conf", CHAR_NONE, EVENT_CONFIG, 0); + new KeyValue("config", "Conf", CHAR_NONE, EVENT_CONFIG, 0); + new KeyValue("switch_text", "ABC", CHAR_NONE, EVENT_SWITCH_TEXT, 0); + new KeyValue("switch_numeric", "123+", CHAR_NONE, EVENT_SWITCH_NUMERIC, 0); + new KeyValue("enter", "↵", CHAR_NONE, KeyEvent.KEYCODE_ENTER, 0); new KeyValue("up", "↑", CHAR_NONE, KeyEvent.KEYCODE_DPAD_UP, 0); new KeyValue("right", "→", CHAR_NONE, KeyEvent.KEYCODE_DPAD_RIGHT, 0); |
