diff options
| author | juloo | 2015-08-01 23:54:38 +0200 |
|---|---|---|
| committer | juloo | 2015-08-01 23:54:38 +0200 |
| commit | 5bbdbcd522bbb5bd63cc5b733817bcaf017d03c5 (patch) | |
| tree | 205a01491d93be3d009aede7f0cc1a4a150447c0 /srcs/juloo.keyboard2/Keyboard2.java | |
| parent | 43408916bbe0438ba3afb32ba48c4074e7fc5986 (diff) | |
| download | unexpected-keyboard-5bbdbcd522bbb5bd63cc5b733817bcaf017d03c5.tar.gz unexpected-keyboard-5bbdbcd522bbb5bd63cc5b733817bcaf017d03c5.zip | |
Implement shift key
Diffstat (limited to 'srcs/juloo.keyboard2/Keyboard2.java')
| -rw-r--r-- | srcs/juloo.keyboard2/Keyboard2.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/srcs/juloo.keyboard2/Keyboard2.java b/srcs/juloo.keyboard2/Keyboard2.java index ce2f011..bfcccdd 100644 --- a/srcs/juloo.keyboard2/Keyboard2.java +++ b/srcs/juloo.keyboard2/Keyboard2.java @@ -27,14 +27,14 @@ public class Keyboard2 extends InputMethodService return (_inputView); } - public void handleKeyUp(KeyValue key) + public void handleKeyUp(KeyValue key, int flags) { int eventCode = key.getEventCode(); switch (eventCode) { case KeyValue.EVENT_NONE: - sendKeyChar(key.getChar()); + sendKeyChar(key.getChar((flags & KeyValue.FLAG_SHIFT) != 0)); break ; case KeyValue.EVENT_DELETE: getCurrentInputConnection().deleteSurroundingText(0, 1); |
