From 5bbdbcd522bbb5bd63cc5b733817bcaf017d03c5 Mon Sep 17 00:00:00 2001 From: juloo Date: Sat, 1 Aug 2015 23:54:38 +0200 Subject: Implement shift key --- srcs/juloo.keyboard2/Keyboard2.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'srcs/juloo.keyboard2/Keyboard2.java') 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); -- cgit v1.2.3