File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
js&css/web-accessible/www.youtube.com Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1820,7 +1820,9 @@ ImprovedTube.pauseWhileTypingOnYoutube = function () {
18201820 if (
18211821 ( / ^ [ a - z 0 - 9 ] $ / i. test ( e . key ) || e . key === "Backspace" ) &&
18221822 ! ( e . ctrlKey && ( e . key === "c" || e . key === "x" || e . key === "a" ) ) &&
1823- ( document . activeElement . tagName === "INPUT" || document . activeElement . tagName === "TEXTAREA" || document . activeElement . tagName === "DIV" ) ) {
1823+ ( document . activeElement . tagName === "INPUT" || document . activeElement . tagName === "TEXTAREA" || document . activeElement . tagName === "DIV"
1824+ || ( ( document . activeElement && ImprovedTube . input . ignoreElements . includes ( document . activeElement . tagName ) ) || event . target . isContentEditable )
1825+ ) ) {
18241826 // Pause the video
18251827 // Check if player is paused
18261828 if ( ! player . paused ) {
You can’t perform that action at this time.
0 commit comments