mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-26 01:30:20 +01:00
Focus on chat input field after Ctrl+S
This commit is contained in:
parent
2f5d769a8d
commit
fdef0e4efa
@ -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…
Reference in New Issue
Block a user