mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
logic to send focus back to pad on Alt F9 when focus on editbar
This commit is contained in:
parent
0c902ced73
commit
bc760e9494
2 changed files with 23 additions and 5 deletions
|
@ -3712,12 +3712,9 @@ function Ace2Inner(){
|
|||
// Note that while most editors use Alt F10 this is not desirable
|
||||
// As ubuntu cannot use Alt F10....
|
||||
evt.preventDefault();
|
||||
// Focus on the editbar.
|
||||
top.console.log("focusing on first child in menu");
|
||||
// Focus on the editbar. -- TODO: Move Focus back to previous state (we know it so we can use it)
|
||||
var firstEditbarElement = parent.parent.$('#editbar').children("ul").first().children().first().children().first().children().first();
|
||||
firstEditbarElement.focus();
|
||||
top.console.log(firstEditbarElement);
|
||||
top.console.log(parent.parent.$(':focus'));
|
||||
$(this).blur();
|
||||
}
|
||||
if ((!specialHandled) && isTypeForSpecialKey && keyCode == 8)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue