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:
@@ -6992,3 +6992,11 @@ function showGeneratedWIData(data) {
|
|||||||
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