diff --git a/res/static/res/script/Keyboard.js b/res/static/res/script/Keyboard.js index 06d58f7..ac95b71 100644 --- a/res/static/res/script/Keyboard.js +++ b/res/static/res/script/Keyboard.js @@ -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(); } -}); \ No newline at end of file +});