fix ctrl+up/down that stopped working

This commit is contained in:
AUTOMATIC 2023-01-20 12:19:30 +03:00
parent 7d3fb5cb03
commit e33cace2c2

View File

@ -1,6 +1,6 @@
addEventListener('keydown', (event) => {
let target = event.originalTarget || event.composedPath()[0];
if (!target.matches("#toprow textarea.gr-text-input[placeholder]")) return;
if (!target.matches("[id*='_toprow'] textarea.gr-text-input[placeholder]")) return;
if (! (event.metaKey || event.ctrlKey)) return;