abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2
diff options
context:
space:
mode:
authorjaguillo2015-10-17 00:54:28 +0200
committerjaguillo2015-10-17 00:54:28 +0200
commit7fb89b0c95e92f46266def50b827b2444d6216e1 (patch)
tree9ea5f53bdc1fd8da50df195d040d1ada2d4b432f /srcs/juloo.keyboard2
parent6bb257fd752ad13c50ee0ebe848543c442470e61 (diff)
downloadunexpected-keyboard-7fb89b0c95e92f46266def50b827b2444d6216e1.tar.gz
unexpected-keyboard-7fb89b0c95e92f46266def50b827b2444d6216e1.zip
Stop special handling of delete keys
Diffstat (limited to 'srcs/juloo.keyboard2')
-rw-r--r--srcs/juloo.keyboard2/Keyboard2.java24
1 files changed, 12 insertions, 12 deletions
diff --git a/srcs/juloo.keyboard2/Keyboard2.java b/srcs/juloo.keyboard2/Keyboard2.java
index 8cb104b..ab3c7c0 100644
--- a/srcs/juloo.keyboard2/Keyboard2.java
+++ b/srcs/juloo.keyboard2/Keyboard2.java
@@ -97,25 +97,25 @@ public class Keyboard2 extends InputMethodService
_inputView.setKeyboard(_numericKeyboard);
else if ((flags & (KeyValue.FLAG_CTRL | KeyValue.FLAG_ALT)) != 0)
handleMetaKeyUp(key, flags);
- else if (key.getEventCode() == KeyEvent.KEYCODE_DEL)
- handleDelKey(1, 0);
- else if (key.getEventCode() == KeyEvent.KEYCODE_FORWARD_DEL)
- handleDelKey(0, 1);
+ // else if (key.getEventCode() == KeyEvent.KEYCODE_DEL)
+ // handleDelKey(1, 0);
+ // else if (key.getEventCode() == KeyEvent.KEYCODE_FORWARD_DEL)
+ // handleDelKey(0, 1);
else if (key.getChar(flags) == KeyValue.CHAR_NONE && key.getEventCode() != KeyValue.EVENT_NONE)
handleMetaKeyUp(key, flags);
else if (key.getChar(flags) != KeyValue.CHAR_NONE)
sendKeyChar(key.getChar(flags));
}
- private void handleDelKey(int before, int after)
- {
- CharSequence selection = getCurrentInputConnection().getSelectedText(0);
+ // private void handleDelKey(int before, int after)
+ // {
+ // CharSequence selection = getCurrentInputConnection().getSelectedText(0);
- if (selection != null && selection.length() > 0)
- getCurrentInputConnection().commitText("", 1);
- else
- getCurrentInputConnection().deleteSurroundingText(before, after);
- }
+ // if (selection != null && selection.length() > 0)
+ // getCurrentInputConnection().commitText("", 1);
+ // else
+ // getCurrentInputConnection().deleteSurroundingText(before, after);
+ // }
private void handleMetaKeyUp(KeyValue key, int flags)
{