fix file viewer intercepting shortcuts

This commit is contained in:
2018-09-19 23:31:51 +02:00
parent 5207abd15f
commit 35abb445cc

View File

@@ -1,6 +1,10 @@
/* global ListNavigator, Toolbar */
$(document).keydown(function(event){
if (event.ctrlKey || event.altKey) {
return // prevent custom shortcuts from interfering with system shortcuts
}
if(event.which === 65 || event.which === 37){ // A or left arrow key go to previous file
ListNavigator.previousItem();
}else if(event.which === 68 || event.which === 39){ // D or right arrow key go to next file
@@ -14,4 +18,4 @@ $(document).keydown(function(event){
}else if(event.which === 73){ // I to open info window
DetailsWindow.toggle();
}
});
});