-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added keyboard support when navigating suggested usernames (#1122)
## Problem In #1022 the username auto-suggest feature was introduced, but the dropdown with usernames didn't support keyboard navigation. This PR aims to solve this, It introduces navigation with arrow keys (up and down) and sets the value on the press of Enter. fixes #1070 ## Solution Now checking for keyboard events on the username input field and on the arrow presses changing the index of the selected menu item, highlighting the appropriate one. On the press of Enter, again using the current value of index, the text input is populated with a value from the usernames array.
- Loading branch information
Showing
3 changed files
with
162 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
------------------------------------------------------------------- | ||
Thu May 02 11:07:23 UTC 2024 - Balsa Asanovic <[email protected]> | ||
|
||
- Added keyboard support for navigating dropdown | ||
of suggested usernames. (gh#openSUSE/agama#1122). | ||
|
||
------------------------------------------------------------------- | ||
Thu Apr 25 15:04:05 UTC 2024 - José Iván López González <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters