Skip to content

Move selection-related list view context actions into its context menu#111

Merged
Aurumaker72 merged 3 commits intomainfrom
move-list-view-context-actions-into-context-menu
Jan 11, 2026
Merged

Move selection-related list view context actions into its context menu#111
Aurumaker72 merged 3 commits intomainfrom
move-list-view-context-actions-into-context-menu

Conversation

@Aurumaker72
Copy link
Collaborator

Move selection-related list view context actions out of the main menu strip and into its context menu.

@Aurumaker72 Aurumaker72 marked this pull request as ready for review January 11, 2026 13:47
@Aurumaker72 Aurumaker72 requested review from Copilot and luttje January 11, 2026 13:47
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the "Generate Reverse Mappings" functionality from the main menu bar to the list view's context menu. The change improves discoverability by placing the action closer to where users interact with mappings.

Changes:

  • Moved "Generate Reverse Mappings" from main menu's "Tools > With Selected..." to the context menu
  • Refactored event handling to use the existing MappingContextMenuBuilder pattern
  • Removed main menu strip items and their associated event handler

Reviewed changes

Copilot reviewed 2 out of 4 changed files in this pull request and generated 3 comments.

File Description
Key2Joy.Gui/MappingContextMenuBuilder.cs Added event and menu item for Generate Reverse Mappings in context menu
Key2Joy.Gui/MainForm.cs Moved method logic and wired up context menu event handler, removed old menu event handler
Key2Joy.Gui/MainForm.Designer.cs Removed menu strip items for "With Selected" submenu and Generate Reverse Mappings option
Key2Joy.Gui/MainForm.resx Minor formatting change from Designer updates
Files not reviewed (1)
  • Key2Joy.Gui/MainForm.Designer.cs: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Collaborator

@luttje luttje left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested it, works great! Much smarter to have it as a context menu option 👍

@Aurumaker72 Aurumaker72 merged commit 4f6c146 into main Jan 11, 2026
1 of 2 checks passed
@Aurumaker72 Aurumaker72 deleted the move-list-view-context-actions-into-context-menu branch January 11, 2026 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants