mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 23:25:11 +08:00
CB-1289: The menubutton event fires twice
This commit is contained in:
parent
07439ff99c
commit
e07822350e
@ -1032,20 +1032,4 @@ public class DroidGap extends Activity implements CordovaInterface {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
* @see android.app.Activity#onKeyUp(int, android.view.KeyEvent)
|
||||
*/
|
||||
|
||||
@Override
|
||||
public boolean onKeyUp(int keyCode, KeyEvent event)
|
||||
{
|
||||
if (appView.canGoBack() || keyCode != KeyEvent.KEYCODE_BACK)
|
||||
return appView.onKeyUp(keyCode, event);
|
||||
else
|
||||
return super.onKeyUp(keyCode, event);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user