From 538f54f47c7a703d24eefb6ef0d58b5c089498a2 Mon Sep 17 00:00:00 2001 From: nightwing Date: Mon, 16 Jul 2012 23:16:29 +0400 Subject: [PATCH] new opera supports KeyboardEvents --- lib/ace/keyboard/textinput.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ace/keyboard/textinput.js b/lib/ace/keyboard/textinput.js index e4ba3e1c..49c93116 100644 --- a/lib/ace/keyboard/textinput.js +++ b/lib/ace/keyboard/textinput.js @@ -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;