Ignore keypress navigation when in lightbox
This commit is contained in:
parent
8bd5c5d4c3
commit
56c8ed6bf0
1 changed files with 1 additions and 1 deletions
|
|
@ -141,7 +141,7 @@ export default {
|
||||||
// Convert keyCode dict into a list of key codes
|
// Convert keyCode dict into a list of key codes
|
||||||
var keyCodeList = Object.keys(keyCodes).map(function(key){return keyCodes[key];});
|
var keyCodeList = Object.keys(keyCodes).map(function(key){return keyCodes[key];});
|
||||||
|
|
||||||
if (!(event.target instanceof HTMLInputElement) && keyCodeList.includes(event.keyCode)) {
|
if (!(event.target instanceof HTMLInputElement) && !(event.target.classList.contains('lightbox-link')) && keyCodeList.includes(event.keyCode)) {
|
||||||
console.log(this.keysDown)
|
console.log(this.keysDown)
|
||||||
// Calculate movement array
|
// Calculate movement array
|
||||||
var x_rel = 0;
|
var x_rel = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue