Increase sensitivity of spacebar.
Revert the touch target of the spacebar to be the same as other keys.
diff --git a/src/com/android/inputmethod/latin/LatinKeyboard.java b/src/com/android/inputmethod/latin/LatinKeyboard.java
index 7720dfb..8527d9c 100644
--- a/src/com/android/inputmethod/latin/LatinKeyboard.java
+++ b/src/com/android/inputmethod/latin/LatinKeyboard.java
@@ -213,19 +213,19 @@
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);
}
}