From ed77f4763a46be0ea29f80477871ca40bc9aa8db Mon Sep 17 00:00:00 2001
From: Cohee <18619528+Cohee1207@users.noreply.github.com>
Date: Mon, 15 Jan 2024 03:45:31 +0200
Subject: [PATCH 1/7] #1696 Don't cancel generation on first Escape press if
editing a message
---
public/script.js | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/public/script.js b/public/script.js
index 3251c47fc..01cbf2c59 100644
--- a/public/script.js
+++ b/public/script.js
@@ -9292,13 +9292,16 @@ jQuery(async function () {
$(document).keyup(function (e) {
if (e.key === 'Escape') {
- if (power_user.auto_save_msg_edits === false) {
+ const isEditVisible = $('#curEditTextarea').is(':visible');
+ if (isEditVisible && power_user.auto_save_msg_edits === false) {
closeMessageEditor();
$('#send_textarea').focus();
+ return;
}
- if (power_user.auto_save_msg_edits === true) {
+ if (isEditVisible && power_user.auto_save_msg_edits === true) {
$(`#chat .mes[mesid="${this_edit_mes_id}"] .mes_edit_done`).click();
$('#send_textarea').focus();
+ return;
}
if (!this_edit_mes_id && $('#mes_stop').is(':visible')) {
$('#mes_stop').trigger('click');
From 67deef0b2916b7e992605c89665608f69dfcf996 Mon Sep 17 00:00:00 2001
From: RossAscends <124905043+RossAscends@users.noreply.github.com>
Date: Mon, 15 Jan 2024 16:19:47 +0900
Subject: [PATCH 2/7] add BOS and temp last back to tabby (eos was already
there)
---
public/index.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/public/index.html b/public/index.html
index 7cb4f79da..cc468feae 100644
--- a/public/index.html
+++ b/public/index.html
@@ -1387,7 +1387,7 @@
Do Sample
-