Fix: Prevent swipe hotkeys when focused into a video element
| @@ -1113,7 +1113,8 @@ export function initRossMods() { | ||
| 1113 | 1113 | $('#character_popup').css('display') === 'none' && |
| 1114 | 1114 | $('#shadow_select_chat_popup').css('display') === 'none' && |
| 1115 | 1115 | !isInputElementInFocus() && |
| 1116 | 1116 | !isModifiedKeyboardEvent(event) && |
| 1117 | + !(document.activeElement instanceof HTMLVideoElement) | |
| 1117 | 1118 | ) { |
| 1118 | 1119 | $('.swipe_left:last').trigger('click', { source: SWIPE_SOURCE.KEYBOARD, repeated: event.repeat }); |
| 1119 | 1120 | return; |
| @@ -1127,7 +1128,8 @@ export function initRossMods() { | ||
| 1127 | 1128 | $('#character_popup').css('display') === 'none' && |
| 1128 | 1129 | $('#shadow_select_chat_popup').css('display') === 'none' && |
| 1129 | 1130 | !isInputElementInFocus() && |
| 1130 | 1131 | !isModifiedKeyboardEvent(event) && |
| 1132 | + !(document.activeElement instanceof HTMLVideoElement) | |
| 1131 | 1133 | ) { |
| 1132 | 1134 | $('.swipe_right:last').trigger('click', { source: SWIPE_SOURCE.KEYBOARD, repeated: event.repeat }); |
| 1133 | 1135 | return; |