diff --git a/src/static/js/ace2_inner.js b/src/static/js/ace2_inner.js index 2b7e2d4ad..e190bfd71 100644 --- a/src/static/js/ace2_inner.js +++ b/src/static/js/ace2_inner.js @@ -4962,7 +4962,6 @@ function Ace2Inner(){ // a fix: in IE, clicking on a control like a button outside the // iframe can "blur" the editor, causing it to stop getting // events, though typing still affects it(!). - top.console.log("blur handled"); setSelection(null); } } diff --git a/src/static/js/pad_editbar.js b/src/static/js/pad_editbar.js index 70360924c..022e94934 100644 --- a/src/static/js/pad_editbar.js +++ b/src/static/js/pad_editbar.js @@ -347,6 +347,13 @@ var padeditbar = (function() toolbar.registerDropdownCommand("import_export"); toolbar.registerDropdownCommand("embed"); + toolbar.registerCommand("settings", function () { + setTimeout(function(){ + $('#options-stickychat').focus(); + },100); + toolbar.toggleDropDown("settings"); + }); + toolbar.registerCommand("import_export", function () { setTimeout(function(){ $('#importfileinput').focus(); @@ -363,7 +370,9 @@ var padeditbar = (function() toolbar.registerCommand("embed", function () { toolbar.setEmbedLinks(); - $('#linkinput').focus().select(); + setTimeout(function(){ + $('#linkinput').focus().select(); + }, 100); toolbar.toggleDropDown("embed"); });