abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2/Keyboard2.java
diff options
context:
space:
mode:
authorjuloo2015-08-01 23:54:38 +0200
committerjuloo2015-08-01 23:54:38 +0200
commit5bbdbcd522bbb5bd63cc5b733817bcaf017d03c5 (patch)
tree205a01491d93be3d009aede7f0cc1a4a150447c0 /srcs/juloo.keyboard2/Keyboard2.java
parent43408916bbe0438ba3afb32ba48c4074e7fc5986 (diff)
downloadunexpected-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.java4
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);