Skip to content

Add package context-menu keyboard shortcuts to Avalonia#4949

Merged
Gabriel Dufresne (GabrielDuf) merged 1 commit into
mainfrom
fix/avalonia-package-context-menu-shortcuts
Jun 17, 2026
Merged

Add package context-menu keyboard shortcuts to Avalonia#4949
Gabriel Dufresne (GabrielDuf) merged 1 commit into
mainfrom
fix/avalonia-package-context-menu-shortcuts

Conversation

@GabrielDuf

Copy link
Copy Markdown
Contributor

This pull request improves the discoverability and consistency of keyboard shortcuts in package context menus across the application. It introduces visual shortcut hints next to menu items and ensures keyboard shortcut handling is robust, especially for the package list. The main changes are grouped below:

User Interface Improvements:

  • Added visual shortcut hints (e.g., "Ctrl+Enter", "Alt+Enter", "Enter") to context menu items like Install, Uninstall, Update, Options, and Details by using a new ShortcutHeader method. This makes keyboard shortcuts more visible and consistent in all package-related context menus.

  • Implemented the ShortcutHeader method to generate menu headers with both the label and a dimmed, right-aligned shortcut hint.

Keyboard Shortcut Handling:

  • Changed the way keyboard shortcuts are handled in the package list: now using the tunnel route with handledEventsToo: true to ensure shortcuts like Enter are processed even when the DataGrid would otherwise swallow them.

@GabrielDuf Gabriel Dufresne (GabrielDuf) merged commit 824e33f into main Jun 17, 2026
3 checks passed
@GabrielDuf Gabriel Dufresne (GabrielDuf) deleted the fix/avalonia-package-context-menu-shortcuts branch June 17, 2026 14:29
@GabrielDuf Gabriel Dufresne (GabrielDuf) linked an issue Jun 17, 2026 that may be closed by this pull request
4 tasks
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.

[BUG] Since 2026.2.1 keyboard shortcuts are missing.

2 participants