diff options
author | 2009-06-04 12:24:14 -0700 | |
---|---|---|
committer | 2009-06-04 12:24:14 -0700 | |
commit | 5e8a2fc5d5661eda6c2eee34b339705544403a49 (patch) | |
tree | d668ae9f195869f81980453d297c4ba14686375e /src | |
parent | 6bfb6d00975907bbbe085c7e6660387eca8fd15a (diff) | |
download | latinime-5e8a2fc5d5661eda6c2eee34b339705544403a49.tar.gz latinime-5e8a2fc5d5661eda6c2eee34b339705544403a49.tar.xz latinime-5e8a2fc5d5661eda6c2eee34b339705544403a49.zip |
Increase sensitivity of spacebar.
Revert the touch target of the spacebar to be the same as other keys.
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/inputmethod/latin/LatinKeyboard.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/com/android/inputmethod/latin/LatinKeyboard.java b/src/com/android/inputmethod/latin/LatinKeyboard.java index 7720dfbe5..8527d9cd5 100644 --- a/src/com/android/inputmethod/latin/LatinKeyboard.java +++ b/src/com/android/inputmethod/latin/LatinKeyboard.java @@ -213,19 +213,19 @@ public class LatinKeyboard extends Keyboard { pressed = !pressed; } } - + /** * Overriding this method so that we can reduce the target area for certain keys. */ @Override public boolean isInside(int x, int y) { - if ((edgeFlags & Keyboard.EDGE_BOTTOM) != 0 || - codes[0] == KEYCODE_SHIFT || - codes[0] == KEYCODE_DELETE) { + final int code = codes[0]; + if (code == KEYCODE_SHIFT || + code == KEYCODE_DELETE) { y -= height / 10; + if (code == KEYCODE_SHIFT) x += width / 6; + if (code == KEYCODE_DELETE) x -= width / 6; } - if (codes[0] == KEYCODE_SHIFT) x += width / 6; - if (codes[0] == KEYCODE_DELETE) x -= width / 6; return super.isInside(x, y); } } |