disable e key image open when search input is focused

This commit is contained in:
Johannes
2026-05-06 04:22:28 +02:00
parent b30464ea2f
commit 34991e4977

View File

@@ -349,7 +349,7 @@
document.addEventListener('keydown',e=>{
if(e.key==='ArrowRight')next();
if(e.key==='ArrowLeft') prev();
if(e.key==='e' && !window.getSelection().toString() && post_urls[i]){
if(e.key==='e' && !window.getSelection().toString() && document.activeElement !== document.getElementById('tag-input') && post_urls[i]){
window.open(post_urls[i], '_blank');
}
});