- 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
|
@ -10,7 +10,8 @@
|
|||
@click="$root.appRoute('search');"
|
||||
@focus="$root.search.showHints = true"
|
||||
@blur="$root.setTimeout(()=>{$root.search.showHints = false}, 300)"
|
||||
v-on:keyup.enter="$root.searchQuery();$root.search.showHints = false"
|
||||
v-on:keyup.enter="$root.searchQuery();$root.search.showHints = false;$root.search.cursor = -1"
|
||||
v-on:keyup="$root.searchCursor"
|
||||
@change="$root.appRoute('search');"
|
||||
@input="$root.getSearchHints()"
|
||||
:placeholder="$root.getLz('term.search') + '...'"
|
||||
|
@ -27,7 +28,7 @@
|
|||
<button
|
||||
class="search-hint text-overflow-elipsis"
|
||||
v-for="hint in $root.search.hints"
|
||||
@click="$root.search.term = hint;$root.search.showHints = false;$root.searchQuery(hint)"
|
||||
@click="$root.search.term = hint;$root.search.showHints = false;$root.searchQuery(hint);$root.search.cursor = -1"
|
||||
>
|
||||
{{ hint }}
|
||||
</button>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue