Fix type error in escape key handler

447c271b36be10a4f117331ec35354bcdc2a0194

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Ignore whitespace
public/script.js+1 -1
@@ -11375,7 +11375,7 @@ jQuery(async function () {
11375 });11375 });
1137611376
11377 $(document).on('keydown', function (e) {11377 $(document).on('keydown', function (e) {
11378 if (e.key === 'Escape' && !e.isComposing) {11378 if (e.key === 'Escape' && !e.originalEvent.isComposing) {
11379 const isEditVisible = $('#curEditTextarea').is(':visible') || $('.reasoning_edit_textarea').length > 0;11379 const isEditVisible = $('#curEditTextarea').is(':visible') || $('.reasoning_edit_textarea').length > 0;
11380 if (isEditVisible && power_user.auto_save_msg_edits === false) {11380 if (isEditVisible && power_user.auto_save_msg_edits === false) {
11381 closeMessageEditor('all');11381 closeMessageEditor('all');