mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Fix for editing text then clicking on empty game space above text not saving edit
This commit is contained in:
@@ -2293,7 +2293,7 @@ function select_game_text(event) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
//if we've moved to a new game chunk we need to save the old chunk
|
//if we've moved to a new game chunk we need to save the old chunk
|
||||||
if ((new_selected_game_chunk != selected_game_chunk) && (selected_game_chunk != null)) {
|
if (((new_selected_game_chunk != selected_game_chunk) && (selected_game_chunk != null)) || (document.activeElement != document.getElementById("Selected Text"))) {
|
||||||
edit_game_text();
|
edit_game_text();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user