mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2024-12-28 17:20:17 +01:00
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:
parent
b1c6aee8d3
commit
b52f782d92
@ -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 () {
|
||||
|
Loading…
Reference in New Issue
Block a user