Disable post-edit blurring and the curtain

Because we don't need them anymore.
This, combined with the chunk optimization, will allow you to
seamlessly continue editing a different chunk after you've finished
editing your current one; e.g. if you edit a chunk and use arrow keys,
backspace or the mouse to select a different chunk, you can immediately
start editing your new chunk without it defocusing.

This patch really has killed two birds with one stone, eh?
Thanks, Javalar!
This commit is contained in:
Gnome Ann 2021-08-25 01:21:01 -04:00
parent b1c6aee8d3
commit b52f782d92
1 changed files with 0 additions and 8 deletions

View File

@ -730,13 +730,6 @@ function submitEditedChunk(event) {
return;
}
show([$('#curtain')]);
setTimeout(function () {
if(document.activeElement.tagName == "CHUNK") {
document.activeElement.blur();
}
}, 5);
chunk = current_editing_chunk;
current_editing_chunk = null;
@ -849,7 +842,6 @@ $(document).ready(function(){
game_text.html(msg.data);
// Make content editable if need be
$('chunk').attr('contenteditable', allowedit);
hide([$('#curtain')]);
// Scroll to bottom of text
if(newly_loaded) {
setTimeout(function () {