support drop down show events

This commit is contained in:
John McLear 2015-03-25 23:30:17 +00:00
parent aff802a0b3
commit e67ae522e2
2 changed files with 10 additions and 2 deletions

View File

@ -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);
}
}

View File

@ -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");
});