Increase sensitivity of spacebar.
Revert the touch target of the spacebar to be the same as other keys.
This commit is contained in:
parent
6bfb6d0097
commit
5e8a2fc5d5
1 changed files with 6 additions and 6 deletions
|
@ -219,13 +219,13 @@ public class LatinKeyboard extends Keyboard {
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean isInside(int x, int y) {
|
public boolean isInside(int x, int y) {
|
||||||
if ((edgeFlags & Keyboard.EDGE_BOTTOM) != 0 ||
|
final int code = codes[0];
|
||||||
codes[0] == KEYCODE_SHIFT ||
|
if (code == KEYCODE_SHIFT ||
|
||||||
codes[0] == KEYCODE_DELETE) {
|
code == KEYCODE_DELETE) {
|
||||||
y -= height / 10;
|
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);
|
return super.isInside(x, y);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue