mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-03 11:27:50 +01:00
Abort Send and Continue while editing a message
This commit is contained in:
parent
6fc8588a8f
commit
1b3db27389
@ -1885,6 +1885,7 @@ export async function reloadCurrentChat() {
|
|||||||
export async function sendTextareaMessage() {
|
export async function sendTextareaMessage() {
|
||||||
if (is_send_press) return;
|
if (is_send_press) return;
|
||||||
if (isExecutingCommandsFromChatInput) return;
|
if (isExecutingCommandsFromChatInput) return;
|
||||||
|
if (this_edit_mes_id) return; // don't proceed if editing a message
|
||||||
|
|
||||||
let generateType;
|
let generateType;
|
||||||
// "Continue on send" is activated when the user hits "send" (or presses enter) on an empty chat box, and the last
|
// "Continue on send" is activated when the user hits "send" (or presses enter) on an empty chat box, and the last
|
||||||
@ -10002,6 +10003,8 @@ jQuery(async function () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
else if (id == 'option_continue') {
|
else if (id == 'option_continue') {
|
||||||
|
if (this_edit_mes_id) return; // don't proceed if editing a message
|
||||||
|
|
||||||
if (is_send_press == false || fromSlashCommand) {
|
if (is_send_press == false || fromSlashCommand) {
|
||||||
is_send_press = true;
|
is_send_press = true;
|
||||||
Generate('continue', buildOrFillAdditionalArgs());
|
Generate('continue', buildOrFillAdditionalArgs());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user