From 8571bee03759eca30754cbc90d80d2e0751ee650 Mon Sep 17 00:00:00 2001 From: DanyaPostfactum Date: Fri, 30 Nov 2012 20:32:50 +1000 Subject: [PATCH] Replace nonexistent method onDelete call with execCommand("del") in textinput --- 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 ca41130e..7b528197 100644 --- a/lib/ace/keyboard/textinput.js +++ b/lib/ace/keyboard/textinput.js @@ -150,7 +150,7 @@ var TextInput = function(parentNode, host) { if (data) host.onTextInput(data); } else - host.onDelete(); + host.execCommand("del", {source: "ace"}); }; var onCompositionStart = function(e) {