diff --git a/lib/ace/autocomplete.js b/lib/ace/autocomplete.js index fef14ff4..bd9b481c 100644 --- a/lib/ace/autocomplete.js +++ b/lib/ace/autocomplete.js @@ -243,10 +243,7 @@ Autocomplete.startCommand = { // needed for firefox on mac editor.completer.cancelContextMenu(); }, - bindKey: "Ctrl-Space|Shift-Space|Alt-Space" -}; -Autocomplete.addTo = function(editor) { - editor.commands.addCommand(Autocomplete.startCommand); + bindKey: "Ctrl-Space|Ctrl-Shift-Space|Alt-Space" }; var FilteredList = function(array, mutateData) { diff --git a/lib/ace/keyboard/textinput.js b/lib/ace/keyboard/textinput.js index 1309c295..24e0ea05 100644 --- a/lib/ace/keyboard/textinput.js +++ b/lib/ace/keyboard/textinput.js @@ -40,7 +40,7 @@ var BROKEN_SETDATA = useragent.isChrome < 18; var TextInput = function(parentNode, host) { var text = dom.createElement("textarea"); text.className = "ace_text-input"; - // debug + /*/ debug text.style.cssText = "opacity:1;background:rgba(0, 250, 0, 0.3);outline:rgba(0, 250, 0, 0.8) solid 1px;outline-offset:3px;width:5em;z-pindex:500"; /**/ if (useragent.isTouchPad) @@ -436,7 +436,7 @@ var TextInput = function(parentNode, host) { tempStyle = text.style.cssText; text.style.cssText = "z-index:100000;" + (useragent.isIE ? "opacity:0.1;" : ""); - text.style.cssText += "background:rgba(250, 0, 0, 0.3); opacity:1;"; + //debug*/ text.style.cssText += "background:rgba(250, 0, 0, 0.3); opacity:1;"; resetSelection(host.selection.isEmpty()); host._emit("nativecontextmenu", {target: host, domEvent: e});