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

Commit b5e8c779 authored by Ken Wakasa's avatar Ken Wakasa Committed by Android Git Automerger
Browse files

am 69db35c4: Make the buttons work for edge pixels of the keyboard

* commit '69db35c4':
  Make the buttons work for edge pixels of the keyboard
parents e32a77c6 69db35c4
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -797,7 +797,9 @@ public class LatinKeyboard extends Keyboard {
        if (mCurrentlyInSpace) {
            return new int[] { mSpaceKeyIndex };
        } else {
            return super.getNearestKeys(x, y);
            // Avoid dead pixels at edges of the keyboard
            return super.getNearestKeys(Math.max(0, Math.min(x, getMinWidth() - 1)),
                    Math.max(0, Math.min(y, getHeight() - 1)));
        }
    }

+1 −1

File changed.

Contains only whitespace changes.