Commit 282b8bb
Focus search bar when typing on frontpage (#2696)
* Initial plan
* Add autofocus prop to search bar for frontpage
Co-authored-by: CommanderStorm <26258709+CommanderStorm@users.noreply.github.com>
* Add tests for search bar autofocus functionality
Co-authored-by: CommanderStorm <26258709+CommanderStorm@users.noreply.github.com>
* Only autofocus search when feedback form and search bar are closed
Co-authored-by: CommanderStorm <26258709+CommanderStorm@users.noreply.github.com>
* Focus search bar when typing on frontpage (not on page load)
Co-authored-by: CommanderStorm <26258709+CommanderStorm@users.noreply.github.com>
* Address code review: allow Shift key and optimize IGNORED_KEYS constant
Co-authored-by: CommanderStorm <26258709+CommanderStorm@users.noreply.github.com>
* Optimize performance: use Set for IGNORED_KEYS and cache search element
Co-authored-by: CommanderStorm <26258709+CommanderStorm@users.noreply.github.com>
* Fix SSR safety and add comprehensive tests for keyboard handling
Co-authored-by: CommanderStorm <26258709+CommanderStorm@users.noreply.github.com>
* Remove unnecessary searchElement cleanup in onUnmounted
Co-authored-by: CommanderStorm <26258709+CommanderStorm@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: CommanderStorm <26258709+CommanderStorm@users.noreply.github.com>
Co-authored-by: Frank Elsinga <frank@elsinga.de>1 parent e30943d commit 282b8bb
File tree
3 files changed
+93
-0
lines changed- tests/specs
- webclient/app/layouts
3 files changed
+93
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
27 | 68 | | |
28 | 69 | | |
29 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
80 | 95 | | |
81 | 96 | | |
82 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
6 | 43 | | |
7 | 44 | | |
8 | 45 | | |
| |||
0 commit comments