From 38ef17528bd58be42df13a6c18dab5556a5df6e6 Mon Sep 17 00:00:00 2001 From: DanyaPostfactum Date: Sun, 21 Oct 2012 03:40:07 +1100 Subject: [PATCH] Fix mistype and opera copy/cut selectAll triggering --- lib/ace/keyboard/textinput.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ace/keyboard/textinput.js b/lib/ace/keyboard/textinput.js index 2082510a..58c49967 100644 --- a/lib/ace/keyboard/textinput.js +++ b/lib/ace/keyboard/textinput.js @@ -175,9 +175,9 @@ var TextInput = function(parentNode, host) { } if (!supported) { + cut = true; text.value = data; text.select(); - cut = true; setTimeout(function(){ host.onCut() }); } }; @@ -200,9 +200,9 @@ var TextInput = function(parentNode, host) { } } if (!supported) { + copied = true; text.value = data; text.select(); - copided = true; setTimeout(function(){ host.onCopy() }); }