mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-08 02:34:46 -04:00
Allow arrow keys to function when SearchDialog is not open (#777)
This commit is contained in:
parent
a0d796551c
commit
b40f201430
@ -136,6 +136,7 @@ export default {
|
|||||||
this.$emit(SELECTED_EVENT, recipe);
|
this.$emit(SELECTED_EVENT, recipe);
|
||||||
},
|
},
|
||||||
onUpDown(e) {
|
onUpDown(e) {
|
||||||
|
if (this.dialog) {
|
||||||
if (e.keyCode === 38) {
|
if (e.keyCode === 38) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
this.selectedIndex--;
|
this.selectedIndex--;
|
||||||
@ -146,6 +147,7 @@ export default {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.selectRecipe();
|
this.selectRecipe();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
resetSelected() {
|
resetSelected() {
|
||||||
this.searchString = "";
|
this.searchString = "";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user