new opera supports KeyboardEvents
This commit is contained in:
parent
354e8b3eff
commit
538f54f47c
1 changed files with 1 additions and 1 deletions
|
|
@ -206,7 +206,7 @@ var TextInput = function(parentNode, host) {
|
||||||
});
|
});
|
||||||
event.addListener(text, "cut", onCut); // for ie9 context menu
|
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) {
|
event.addListener(parentNode, "keydown", function(e) {
|
||||||
if ((useragent.isMac && !e.metaKey) || !e.ctrlKey)
|
if ((useragent.isMac && !e.metaKey) || !e.ctrlKey)
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue