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

Commit 4e916ad8 authored by Chih-Wei Huang's avatar Chih-Wei Huang
Browse files

Add PageUp and PageDown hot keys

Change-Id: I588f70d74bc5c02e1fb60c7a2821d8801f2333e0
parent 9226a713
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -3315,6 +3315,16 @@ public class WebView extends AbsoluteLayout
            nativeHideCursor();
       }

        if (keyCode == KeyEvent.KEYCODE_PAGE_UP) {
            pageUp(false);
            return true;
        }

        if (keyCode == KeyEvent.KEYCODE_PAGE_DOWN) {
            pageDown(false);
            return true;
        }

        if (keyCode >= KeyEvent.KEYCODE_DPAD_UP
                && keyCode <= KeyEvent.KEYCODE_DPAD_RIGHT) {
            // always handle the navigation keys in the UI thread