Skip to content

Commit

Permalink
Added superclass onKeyDown() handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
forteri76 committed May 13, 2014
1 parent 502d177 commit 9bd9674
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/com/efortin/frozenbubble/HomeScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -628,11 +628,12 @@ else if (pageID == 3) {

@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
boolean handled = false;
if (keyCode == KeyEvent.KEYCODE_BACK) {
backKeyPress();
return true;
handled = true;
}
return super.onKeyDown(keyCode, event);
return handled || super.onKeyDown(keyCode, event);
}

/*
Expand Down

0 comments on commit 9bd9674

Please sign in to comment.