Skip to content

Commit

Permalink
Prevent alt+space from crashing. Fixes #2580 (#2593)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluemarvin authored and keianhzo committed Jan 9, 2020
1 parent 34c12f5 commit 9448b13
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -649,6 +649,10 @@ public boolean dispatchKeyEvent(KeyEvent event) {
}
final int keyCode = event.getKeyCode();
if (DeviceType.isOculusBuild()) {
if (event.getKeyCode() == KeyEvent.KEYCODE_SEARCH) {
// Eat search key, otherwise it causes a crash on Oculus
return true;
}
int action = event.getAction();
if (action != KeyEvent.ACTION_DOWN) {
return super.dispatchKeyEvent(event);
Expand Down

0 comments on commit 9448b13

Please sign in to comment.