new opera supports KeyboardEvents

This commit is contained in:
nightwing 2012-07-16 23:16:29 +04:00
commit 538f54f47c

View file

@ -206,7 +206,7 @@ var TextInput = function(parentNode, host) {
});
event.addListener(text, "cut", onCut); // for ie9 context menu
}
else if (useragent.isOpera) {
else if (useragent.isOpera && !("KeyboardEvent" in window)) {
event.addListener(parentNode, "keydown", function(e) {
if ((useragent.isMac && !e.metaKey) || !e.ctrlKey)
return;