mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Standardize linebreak behavior
This commit is contained in:
@@ -6991,4 +6991,12 @@ function showGeneratedWIData(data) {
|
|||||||
world_info_data[data.uid].manual_text = data.out;
|
world_info_data[data.uid].manual_text = data.out;
|
||||||
send_world_info(data.uid);
|
send_world_info(data.uid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$el(".gametext").addEventListener("keydown", function(event) {
|
||||||
|
if (event.key !== "Enter") return;
|
||||||
|
// execCommand is deprecated but until Firefox supports
|
||||||
|
// contentEditable="plaintext-only" we're just gonna have to roll with it
|
||||||
|
document.execCommand("insertLineBreak");
|
||||||
|
event.preventDefault();
|
||||||
|
});
|
Reference in New Issue
Block a user