You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This logic looks weird. Just check if the actual activeElement is an input or has the attribute "contenteditable". No need to get all the inputs and contenteditable elements to check if they contain the activeElement.
https://github.com/ynshung/better-yt-shorts/blame/c3c039b4e868d2330c653fdd6105d7c93d607e87/src/lib/handleKeyEvent.ts#L21-L29
![image](https://private-user-images.githubusercontent.com/43168569/322234981-fa5000a0-18b8-42d1-8be6-65de9528950f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU2MDI2NTUsIm5iZiI6MTcyNTYwMjM1NSwicGF0aCI6Ii80MzE2ODU2OS8zMjIyMzQ5ODEtZmE1MDAwYTAtMThiOC00MmQxLThiZTYtNjVkZTk1Mjg5NTBmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA2VDA1NTkxNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWExYzAwMGM0OWU0MzU5Mjc4YTI2Mzc3OGRmMDhkODQwNzFhM2QyMDVmMTFkZDk4MmMyYTUwNDExMzVmN2QzNTgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.TZPleqVCVeh3mfFjV_5RHY6bbZmg8ZjjDOkcC5-BeTg)
This logic looks weird. Just check if the actual activeElement is an input or has the attribute "contenteditable". No need to get all the inputs and contenteditable elements to check if they contain the activeElement.
The text was updated successfully, but these errors were encountered: