- added arrow navigation to search
- version bump
This commit is contained in:
parent
28c0f858a7
commit
c68824f2ab
5 changed files with 25 additions and 6 deletions
|
@ -22,6 +22,7 @@ const app = new Vue({
|
|||
lzListing: ipcRenderer.sendSync("get-i18n-listing"),
|
||||
search: {
|
||||
term: "",
|
||||
cursor: -1,
|
||||
hints: [],
|
||||
showHints: false,
|
||||
results: {},
|
||||
|
@ -3875,6 +3876,17 @@ const app = new Vue({
|
|||
break;
|
||||
}
|
||||
},
|
||||
searchCursor(e) {
|
||||
if(e.keyCode == '40') {
|
||||
if((this.search.hints.length - 1) < this.search.cursor + 1) return
|
||||
this.search.cursor++
|
||||
this.search.term = this.search.hints[this.search.cursor]
|
||||
}else if(e.keyCode == '38'){
|
||||
if(this.search.cursor == 0) return
|
||||
this.search.cursor--
|
||||
this.search.term = this.search.hints[this.search.cursor]
|
||||
}
|
||||
},
|
||||
async searchQuery(term = this.search.term) {
|
||||
let self = this;
|
||||
if (term == "") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue