* fix event grabbing keyboard when trying to use browser shortcuts

This commit is contained in:
Dominika Liberda 2021-07-21 01:15:14 +00:00
parent 88cfaf87aa
commit 777549a014

View file

@ -237,7 +237,7 @@ window.addEventListener('DOMContentLoaded', (event) => {
function handleKeyboard(e) { function handleKeyboard(e) {
console.log(e) console.log(e)
if (e.target.name != "search_query") { if (e.target.name != "search_query" && !e.ctrlKey && e.altKey) {
if (e.key == "ArrowLeft") { // go ahead, complain this is not a switch if (e.key == "ArrowLeft") { // go ahead, complain this is not a switch
seekRelative(-5); seekRelative(-5);
e.preventDefault(); e.preventDefault();