Focus on chat input field after Ctrl+S
This commit is contained in:
parent
2f5d769a8d
commit
fdef0e4efa
1 changed files with 3 additions and 0 deletions
|
@ -60,6 +60,9 @@ document.addEventListener("keydown", function(event) {
|
||||||
var showControlsElement = document.getElementById('show-controls');
|
var showControlsElement = document.getElementById('show-controls');
|
||||||
if (showControlsElement && showControlsElement.childNodes.length >= 4) {
|
if (showControlsElement && showControlsElement.childNodes.length >= 4) {
|
||||||
showControlsElement.childNodes[3].click();
|
showControlsElement.childNodes[3].click();
|
||||||
|
|
||||||
|
var arr = document.getElementById('chat-input').childNodes[2].childNodes;
|
||||||
|
arr[arr.length - 1].focus();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue