Skip to content

Commit

Permalink
Prevent alt+space from crashing. Fixes MozillaReality#2580 (MozillaRe…
Browse files Browse the repository at this point in the history
  • Loading branch information
bluemarvin authored and Alexandre Lissy committed Jan 21, 2020
1 parent 0379f9f commit ce1486b
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 ce1486b

Please sign in to comment.