Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5e8a2fc5 authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Increase sensitivity of spacebar.

Revert the touch target of the spacebar to be the same as other keys.
parent 6bfb6d00
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -219,13 +219,13 @@ public class LatinKeyboard extends Keyboard {
         */
        @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);
        }
    }