mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
fix: prevent swiping messages when editing tasks
This commit is contained in:
@@ -790,7 +790,7 @@ $("document").ready(function () {
|
||||
function isInputElementInFocus() {
|
||||
//return $(document.activeElement).is(":input");
|
||||
var focused = $(':focus');
|
||||
if (focused.is('input') || focused.is('textarea') || focused.attr('contenteditable') == 'true') {
|
||||
if (focused.is('input') || focused.is('textarea') || focused.prop('contenteditable') == 'true') {
|
||||
if (focused.attr('id') === 'send_textarea') {
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user