unit selection using Tab key [bounty: 16 XTR]
When selecting units , navigation can only be done using the arrow keys (β β β β). The Tab key does not cycle through available units, which is expected behavior for accessibility and smoother keyboard navigation.
Steps to reproduce the behavior:
Launch the game
Go to unit selection screen
Press Tab or Shift + Tab
Nothing happens
Expected behavior Tab should move the focus to the next unit in the list Shift + Tab should move the focus backward
Desktop:
- OS: Windows 11, Arch Linux
- Browser: Firefox
- Version: 135.0.1 (64-bit)
The current functionality is good enough in my opinion and might not require modification, as it aligns with both usability and accessibility best practices. Navigation between units using the arrow keys (β β β β) could be an intentional design choice. This prevents users from having to tab through a potentially large number of individual unit elements, which would be inefficient and cumbersome.
This behavior is similar to how radio button groups work in accessible UI design: users use arrow keys to move between options while the entire group is treated as a single tabbable element. This minimizes the number of Tab stops and makes keyboard navigation smoother and more predictable. https://www.w3.org/WAI/ARIA/apg/patterns/radio/
Do I get the bounty π ? @DreadKnight
Hi @Venkata-Sai-Vishwanath-robo , Thanks for your thoughts! While arrow keys are useful, adding Tab navigation would enhance accessibility and improve the overall user experience. Tab is a standard in many user interfaces, not just in gaming, as it allows for quicker, more efficient navigation through different elements. In games, itβs commonly used to cycle through units or menus, allowing players to move faster between selectable items, which is crucial when managing multiple elements. Beyond gaming, in software applications like email clients or web forms, Tab helps users quickly switch between fields or sections without having to manually scroll or use the mouse. This addition would complement the arrow keys, not replace them, offering a more inclusive and streamlined experience for all players.
Hey @emna9 ! It would be great to have Tab and Shift + Tab cycle through units during selection. Itβs a common behavior in most interfaces and would make keyboard navigation much smoother especially for accessibility. A small change that could really improve the UX.
@yousefsassy Hi can I work on this?
@MattFooshilong yeah sure !
@MattFooshilong Heya! I've assigned you to it. 2 weeks soft deadline π»
@MattFooshilong Note that ideally, focused units should be materializable ones if active unit is Dark Priest, similarly to how the mouse scroll wheel works. Could have this as a separate issue after if too much for you all at once. Don't forget to π