Disabling certain shortcut keys |
Post Reply |
Author | |
Marek
Groupie Joined: 02 February 2005 Status: Offline Points: 20 |
Post Options
Thanks(0)
Posted: 03 February 2005 at 1:42pm |
Hi, Is there a way to disable a set of characters to be used as shortcut keys? ie if a user selects one of the forbidden shortcut keys in the Customization Dialog, a warning would appear and the key would be disallowed? Thanks. -m |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
I suppose you could add a key binding for all disallowed key to an ID,
and in the commandbars_execute event you can use this Id to display you
message.
|
|
Boyd
Senior Member Joined: 08 December 2003 Location: United States Status: Offline Points: 285 |
Post Options
Thanks(0)
|
I've actually spent at lot of time looking into this, and there is no solution. A simple scenario is using Ctrl+C for the Copy command. This is a shortcut that is used by many controls in an application, and it'd be crazy to assign this to a CommandBarControl because it's almost impossible to figure out which of the many controls on the screen should have the copy command applied to it. The real problem is with customization. If a user goes and customizes the Ctrl+C shortcut, you've just lost the built-in copy functionality from all your controls (since CommandBars will steal the command from everything in your app). The easy workaround would be for Codejock to update the customization procedures to either allow you to specificy shortcuts that cannot be used to customize OR at least expose an event you can respond to before a key binding is added that would allow you to cancel the assignment. Way back on Sept 16, 2004, I submitted an item to Codejock title "More Properties/Methods for CommandBars KeyBindings" (Issue #1713). The following summarizes that request:
Unfortunately, it's now been 5 months and I've received absolutely no response . This is one of 10 items I've posted and never received any feedback on whatsoever. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |