Skip to content

Commit 47371a1

Browse files
authored
1 parent ff9d942 commit 47371a1

File tree

1 file changed

+3
-1
lines changed
  • js&css/web-accessible/www.youtube.com

1 file changed

+3
-1
lines changed

js&css/web-accessible/www.youtube.com/player.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1820,7 +1820,9 @@ ImprovedTube.pauseWhileTypingOnYoutube = function () {
18201820
if (
18211821
(/^[a-z0-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) {

0 commit comments

Comments
 (0)