Skip to content

Easier keyboard pattern filtering selection#2300

Open
shewitt-au wants to merge 10 commits intoWerWolv:masterfrom
shewitt-au:easier_keyboard_pattern_filtering_selection
Open

Easier keyboard pattern filtering selection#2300
shewitt-au wants to merge 10 commits intoWerWolv:masterfrom
shewitt-au:easier_keyboard_pattern_filtering_selection

Conversation

@shewitt-au
Copy link
Contributor

@shewitt-au shewitt-au commented Jun 10, 2025

Problem addressed

No keyboard naviagtion in the "Import Pattern File..." popup (from right click menu in "Pattern editor"). There seems to be poor support for kbnav in general, but I'm always using this popup when debugging, and I find this makes things earier.

Changed behaviour

The up and down keys now change the selected pattern. You can edit the filter but still use the up and down keys to select filtered results. The enter key loads the pattern.

Caveat

This PR is mainly meant as a feature demonstration. There's likely a better way to do this. ImHex is my first exposure to Dear ImGui.

Implementation description

I tried to keep the multiple selection code path the same. I've added a "// TODO" in the multi selection code path to mark code which to me looks funny.

@shewitt-au shewitt-au marked this pull request as ready for review June 10, 2025 20:55
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.

1 participant