mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 07:02:51 +08:00
This is being called from java code, but callback didn't exist
This commit is contained in:
parent
2bb67ee4b0
commit
be5cac6d0b
@ -17,6 +17,13 @@ KeyEvent.prototype.backTrigger = function()
|
||||
document.dispatchEvent(e);
|
||||
}
|
||||
|
||||
KeyEvent.prototype.menuTrigger = function()
|
||||
{
|
||||
var e = document.createEvent('Events');
|
||||
e.initEvent('menuKeyDown');
|
||||
document.dispatchEvent(e);
|
||||
}
|
||||
|
||||
if (document.keyEvent == null || typeof document.keyEvent == 'undefined')
|
||||
{
|
||||
window.keyEvent = document.keyEvent = new KeyEvent();
|
||||
|
Loading…
Reference in New Issue
Block a user