disable e key image open when search input is focused
This commit is contained in:
@@ -349,7 +349,7 @@
|
|||||||
document.addEventListener('keydown',e=>{
|
document.addEventListener('keydown',e=>{
|
||||||
if(e.key==='ArrowRight')next();
|
if(e.key==='ArrowRight')next();
|
||||||
if(e.key==='ArrowLeft') prev();
|
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');
|
window.open(post_urls[i], '_blank');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user