mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Prevent current_editing_chunk from being a non-chunk element
This commit is contained in:
@ -622,7 +622,9 @@ function setadventure(state) {
|
|||||||
|
|
||||||
function autofocus(event) {
|
function autofocus(event) {
|
||||||
if(connected) {
|
if(connected) {
|
||||||
|
if(event.target.tagName == "CHUNK") {
|
||||||
current_editing_chunk = event.target;
|
current_editing_chunk = event.target;
|
||||||
|
}
|
||||||
event.target.focus();
|
event.target.focus();
|
||||||
} else {
|
} else {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
Reference in New Issue
Block a user