This is being called from java code, but callback didn't exist

This commit is contained in:
Matt Kane 2010-10-28 23:15:59 +08:00 committed by Bryce Curtis
parent 2bb67ee4b0
commit be5cac6d0b

View File

@ -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();