From e9df9bc2991fab7632270f3c7fe1aa513a9f9251 Mon Sep 17 00:00:00 2001 From: juloo Date: Mon, 3 Aug 2015 15:11:11 +0200 Subject: Repeat key on long press --- srcs/juloo.keyboard2/Keyboard2.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'srcs/juloo.keyboard2/Keyboard2.java') diff --git a/srcs/juloo.keyboard2/Keyboard2.java b/srcs/juloo.keyboard2/Keyboard2.java index fd86ccc..d02b239 100644 --- a/srcs/juloo.keyboard2/Keyboard2.java +++ b/srcs/juloo.keyboard2/Keyboard2.java @@ -63,7 +63,7 @@ public class Keyboard2 extends InputMethodService getCurrentInputConnection().sendKeyEvent(event); getCurrentInputConnection().sendKeyEvent(KeyEvent.changeAction(event, KeyEvent.ACTION_UP)); } - else + else if (key.getChar(false) != KeyValue.CHAR_NONE) { sendKeyChar(key.getChar((flags & KeyValue.FLAG_SHIFT) != 0)); } -- cgit v1.2.3