Skip to content

Commit

Permalink
After search, unfocus search bar
Browse files Browse the repository at this point in the history
  • Loading branch information
kaubu committed Dec 17, 2023
1 parent 83dff5d commit 4419722
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@
- [ ] Living Suffixes
- [ ] Dead Prefixes
- [ ] Dead Suffixes
- [ ] Make searches case-insensitive (easy for search a bit harder for
- [x] Make searches case-insensitive (easy for search a bit harder for
definitions)
- [ ] Have a note at the start for specific exact matches
- [ ] False friends warning -
https://anglisc.miraheze.org/wiki/False_Friends
- [ ] Will also display if a word is Germanic or not
- [ ] Edit "to use" words, add ones that aren't there by looking through the
"Helpful Anglish Words" page
- [ ] Separate "exact match" and "related match" in the "Other Results"
- [x] Separate "exact match" and "related match" in the "Other Results"
* Exact fuzzy match will work in the following environments: "{START}X ", "
X{END}", " X ", ", X{SPACE/END}", "{START/SPACE}X"
- [ ] Filter out any "other results" if I've already seen any up top. This
Expand All @@ -44,6 +44,7 @@
- [ ] Search not just definitions, but headwords (only), notes, etymologies
(maybe list them all and make checkmarks)
- [ ] List all words of a given Parts-of-speech
* Just have a "Wordlist" table that can be filtered
- [x] Add sub-lemmas from Germanic Thesaurus

## Project setup
Expand Down
1 change: 1 addition & 0 deletions src/components/SearchResult.vue
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,7 @@ onMounted(() => {
window.scrollTo(0, 0);
} else if (e.key === "Enter" && (document.activeElement === searchBar)) {
window.scrollTo(0, 0);
searchBar?.blur();
} else if (e.code === "KeyD" && !(document.activeElement === searchBar)) {
window.scrollTo(0, document.body.scrollHeight);
}
Expand Down
2 changes: 1 addition & 1 deletion src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

<p><sub>This project is still in progress, expect errors.</sub></p>

<p><sub>v1.4.0 (2023-12-17)</sub></p>
<p><sub>v1.4.1 (2023-12-17)</sub></p>
</center>
</template>

Expand Down

0 comments on commit 4419722

Please sign in to comment.