Skip to content

Commit

Permalink
Small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kaubu committed Dec 17, 2023
1 parent e79338c commit 92f7529
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/components/SearchResult.vue
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,6 @@ async function refreshSearch() {
if (foundExactMatch) {
anglishExactResults.value = anglishExactResults.value.concat(newExactDefinitions);
console.log(`exact results = ${JSON.stringify(anglishExactResults.value)}`);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/default/AppBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ onMounted(() => {
if (e.code === "KeyS"
&& (document.activeElement !== searchBar)
&& (document.activeElement !== wordlistSearch)) {
// console.log("Pressed 's'!");
// console.log(`Focusing search! activeElement = ${document.activeElement}`);
searchBar?.focus();
// Unfocus the search bar if escape is pressed
} else if (e.code === "Escape" && (document.activeElement === searchBar)) {
Expand Down
5 changes: 0 additions & 5 deletions src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,6 @@
<script lang="ts" setup>
import { onMounted } from 'vue';
// window.addEventListener("keydown", (e) => {
// if (e.code === "KeyS") {
// console.log("Pressed 's'!");
// }
// });
onMounted(() => {
const searchBar = document.getElementById("searchBar");
window.addEventListener("keyup", (e) => {
Expand Down
2 changes: 1 addition & 1 deletion src/views/Wordlist.vue
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const headers: {
title: "Notes",
},
];
let search: Ref<string> = ref("");
const search: Ref<string> = ref("");
onMounted(() => {
const searchBar = document.getElementById("searchBar");
Expand Down

0 comments on commit 92f7529

Please sign in to comment.