Another fix

This commit is contained in:
ebolam
2023-04-26 19:55:15 -04:00
parent 45e4a278dc
commit 782e9e5fa0

View File

@@ -3085,12 +3085,12 @@ function gametextwatcher(records) {
if (!dirty_chunks.includes(chunk.getAttribute("chunk"))) { if (!dirty_chunks.includes(chunk.getAttribute("chunk"))) {
dirty_chunks.push(chunk.getAttribute("chunk")); dirty_chunks.push(chunk.getAttribute("chunk"));
//Stupid firefox sometimes looses focus as you type after deleting stuff. Fix that here //Stupid firefox sometimes looses focus as you type after deleting stuff. Fix that here
//var sel = window.getSelection(); var sel = window.getSelection();
//if (sel.anchorNode instanceof HTMLElement) { if (sel.anchorNode instanceof HTMLElement) {
// sel.anchorNode.focus(); sel.anchorNode.focus();
//} else { } else {
// game_text.focus(); game_text.focus();
//} }
} }
} }
} }