How can I suppress Ribbon shortcut key handling when focus is inside the PropertyGrid, without breaking its built-in copy/paste behavior? #2206
Unanswered
gentleman-ming
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using a standard .NET PropertyGrid in a WinForms application. I've also bound global shortcut keys (like Ctrl+V) to actions on a Ribbon (e.g., paste_Click).
The issue is:
When editing a property inside the PropertyGrid (e.g., typing in a field like ImageName), pressing Ctrl+V triggers the Ribbon's paste event, instead of letting the PropertyGrid handle the paste internally.
✅ What I Want:
Prevent Ribbon shortcut keys from triggering when focus is inside the PropertyGrid or its child editors.
Allow the PropertyGrid to handle copy/paste natively as usual.
Still allow shortcuts like Ctrl+V to work normally when focus is on other controls (e.g., TextBox).
❓ Question:
How can I suppress Ribbon shortcut key handling when focus is inside the PropertyGrid, without breaking its built-in copy/paste behavior?
Let me know if you want this formatted for a specific platform (e.g., Stack Overflow, GitHub, Reddit) or need a longer version with code examples.
Beta Was this translation helpful? Give feedback.
All reactions