allow msg edit hotkey when user is last

This commit is contained in:
RossAscends 2023-12-17 20:18:51 +09:00
parent 26e822046e
commit 3d1bbd94e1
1 changed files with 2 additions and 2 deletions

View File

@ -1052,11 +1052,11 @@ export function initRossMods() {
}
if (event.key == 'ArrowUp') { //edits last message if chatbar is empty and focused
//console.log('got uparrow input');
console.log('got uparrow input');
if (
$('#send_textarea').val() === '' &&
chatbarInFocus === true &&
$('.swipe_right:last').css('display') === 'flex' &&
//$('.swipe_right:last').css('display') === 'flex' &&
$('#character_popup').css('display') === 'none' &&
$('#shadow_select_chat_popup').css('display') === 'none'
) {