Skip to content

Conversation

aaronsuns
Copy link

  • Implements Arrow Up/Down navigation through filtered role list
  • Adds Enter key selection for highlighted role
  • Adds Escape key to clear filter and close popup
  • Maintains visual selection highlighting with smooth scrolling
  • Preserves existing mouse click functionality
  • Includes comprehensive test coverage for edge cases
  • Updates documentation with keyboard shortcuts usage

Addresses GitHub issue #279

Features:

  • Arrow Down/Up: Navigate through visible (filtered) roles
  • Enter: Select and switch to highlighted role
  • Escape: Clear filter and close popup
  • Auto-selects first matching role when typing filter
  • Smooth scrolling for roles outside viewport
  • Proper bounds checking and edge case handling

Technical details:

  • Enhanced setupRoleFilter() function in popup.js
  • Separated keydown (navigation) from keyup (filtering) events
  • Added helper functions for visible role management
  • Uses existing .selected CSS class for highlighting
  • Works across Chrome, Firefox, and Edge browsers

- Implements Arrow Up/Down navigation through filtered role list
- Adds Enter key selection for highlighted role
- Adds Escape key to clear filter and close popup
- Maintains visual selection highlighting with smooth scrolling
- Preserves existing mouse click functionality
- Includes comprehensive test coverage for edge cases
- Updates documentation with keyboard shortcuts usage

Addresses GitHub issue tilfinltd#279

Features:
- Arrow Down/Up: Navigate through visible (filtered) roles
- Enter: Select and switch to highlighted role
- Escape: Clear filter and close popup
- Auto-selects first matching role when typing filter
- Smooth scrolling for roles outside viewport
- Proper bounds checking and edge case handling

Technical details:
- Enhanced setupRoleFilter() function in popup.js
- Separated keydown (navigation) from keyup (filtering) events
- Added helper functions for visible role management
- Uses existing .selected CSS class for highlighting
- Works across Chrome, Firefox, and Edge browsers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants