mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04:00
working f9 logic
This commit is contained in:
parent
bc760e9494
commit
e9360b6ed2
3 changed files with 6 additions and 2 deletions
|
@ -63,6 +63,7 @@ ToolbarItem.prototype.bind = function (callback) {
|
|||
|
||||
if (self.isButton()) {
|
||||
self.$el.click(function (event) {
|
||||
$(':focus').blur();
|
||||
callback(self.getCommand(), self);
|
||||
event.preventDefault();
|
||||
});
|
||||
|
@ -311,6 +312,7 @@ var padeditbar = (function()
|
|||
// Send the users focus back to the pad
|
||||
if(evt.keyCode === 120){
|
||||
// If we're in the editbar already..
|
||||
$(':focus').blur(); // required to do not try to remove!
|
||||
padeditor.ace.focus(); // Sends focus back
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue