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 () {
1137511375 });
1137611376
1137711377 $(document).on('keydown', function (e) {
1137811378 if (e.key === 'Escape' && !e.originalEvent.isComposing) {
1137911379 const isEditVisible = $('#curEditTextarea').is(':visible') || $('.reasoning_edit_textarea').length > 0;
1138011380 if (isEditVisible && power_user.auto_save_msg_edits === false) {
1138111381 closeMessageEditor('all');