mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-24 17:36:14 -04:00
chat: Fix blur and focus in Alt-C shortcut handler
This commit is contained in:
parent
59848efc9b
commit
92cd1feb8a
1 changed files with 2 additions and 2 deletions
|
@ -2589,9 +2589,9 @@ function Ace2Inner(editorInfo, cssManagers) {
|
||||||
altKey && keyCode === 67 &&
|
altKey && keyCode === 67 &&
|
||||||
padShortcutEnabled.altC) {
|
padShortcutEnabled.altC) {
|
||||||
// Alt c focuses on the Chat window
|
// Alt c focuses on the Chat window
|
||||||
$(this).blur();
|
evt.target.blur();
|
||||||
parent.parent.chat.show();
|
parent.parent.chat.show();
|
||||||
parent.parent.$('#chatinput').focus();
|
parent.parent.chat.focus();
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
}
|
}
|
||||||
if (!specialHandled && type === 'keydown' &&
|
if (!specialHandled && type === 'keydown' &&
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue