Skip to content

fix: prevent alpha keybinds from exiting text input areas#85

Merged
MacroPower merged 1 commit intomainfrom
fix/alphanumeric-exiting-filter
Aug 3, 2025
Merged

fix: prevent alpha keybinds from exiting text input areas#85
MacroPower merged 1 commit intomainfrom
fix/alphanumeric-exiting-filter

Conversation

@MacroPower
Copy link
Copy Markdown
Owner

Fixes #82

This PR prevents alpha keybinds that are also assigned to navigation actions from exiting text input areas (e.g. hjkl).

Unfortunately input handling is still all over the place in the ui package, and thus this/similar bugs probably will be easy to re-introduce somewhere until I refactor it. I've added an end-to-end test to try to prevent this from happening.

@codecov
Copy link
Copy Markdown

codecov bot commented Aug 3, 2025

Codecov Report

❌ Patch coverage is 15.00000% with 34 lines in your changes missing coverage. Please review.
✅ Project coverage is 54.35%. Comparing base (afc7045) to head (84c68af).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
pkg/ui/ui.go 0.00% 28 Missing ⚠️
pkg/ui/pager/pager.go 0.00% 4 Missing ⚠️
pkg/ui/list/keys.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #85      +/-   ##
==========================================
+ Coverage   54.30%   54.35%   +0.05%     
==========================================
  Files          43       43              
  Lines        5359     5365       +6     
==========================================
+ Hits         2910     2916       +6     
  Misses       2357     2357              
  Partials       92       92              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@MacroPower MacroPower merged commit c9eab58 into main Aug 3, 2025
4 of 5 checks passed
@MacroPower MacroPower deleted the fix/alphanumeric-exiting-filter branch August 3, 2025 03:04
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.

Can not type J or K in find menu

1 participant