Focus on chat input field after Ctrl+S

This commit is contained in:
oobabooga 2023-08-27 16:45:37 -07:00
parent 2f5d769a8d
commit fdef0e4efa

View File

@ -60,6 +60,9 @@ document.addEventListener("keydown", function(event) {
var showControlsElement = document.getElementById('show-controls');
if (showControlsElement && showControlsElement.childNodes.length >= 4) {
showControlsElement.childNodes[3].click();
var arr = document.getElementById('chat-input').childNodes[2].childNodes;
arr[arr.length - 1].focus();
}
}