Fix for editing text then clicking on empty game space above text not saving edit

This commit is contained in:
ebolam
2022-09-26 16:00:26 -04:00
parent 2d4b4a4046
commit 26ba52e2fa

View File

@@ -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();
} }