Skip to content

Commit

Permalink
Do some work toward debugging the focus
Browse files Browse the repository at this point in the history
  • Loading branch information
kaubu committed Dec 17, 2023
1 parent 3d9644d commit ea95e05
Showing 1 changed file with 1 addition and 1 deletion.
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(`Focusing search! activeElement = ${document.activeElement}`);
console.log(`Focusing search! activeElement = ${document.activeElement?.id}`);
searchBar?.focus();
// Unfocus the search bar if escape is pressed
} else if (e.code === "Escape" && (document.activeElement === searchBar)) {
Expand Down

0 comments on commit ea95e05

Please sign in to comment.