Skip to content

Commit

Permalink
[PICO] Screenshot button doesn't dismiss the keyboard
Browse files Browse the repository at this point in the history
  • Loading branch information
felipeerias committed Feb 14, 2024
1 parent 4eefddf commit 8a8a788
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1318,7 +1318,7 @@ public boolean dispatchKeyEvent(final KeyEvent event) {
return false;
} else {
connection.sendKeyEvent(event);
hide(UIWidget.KEEP_WIDGET);
dismiss();
}
return true;
}
Expand Down
4 changes: 2 additions & 2 deletions app/src/picoxr/java/com/igalia/wolvic/PlatformActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ public static boolean filterPermission(final String aPermission) {
}

public static boolean isNotSpecialKey(KeyEvent event) {
// Dummy implementation.
return true;
// Recognize PICO's screenshot button.
return event.getKeyCode() != KeyEvent.KEYCODE_CAMERA;
}

public static boolean isPositionTrackingSupported() {
Expand Down

0 comments on commit 8a8a788

Please sign in to comment.