I am using Infragistics CAB ToolBaseCommandAdapter. I have noticed a bug when typing some keystroke the toolbar manager commands are raised.
ToolBaseCommandAdapter.OnEventInvoked
How do I prevent the ToolbarManager get UltraTextEditor keystrokes ?
The bug was in the Keys assigned for the toolbar item. It got complicated as in our code we convert from Keys to Shortcut.
I agree with the concepts you have mentioned.
Thanks
I'm not sure why you think this is a bug, but if you assign a particular keystroke as a shortcut, it is supposed to be processed as a mnemonic when that keystroke is typed. Typically one makes the key combination one that a user is extremely unlikely to type inadvertantly, for example, something that includes the Alt key.
I don't think UltraToolbarsManager has an awareness of which control triggered the key combination, but the form's ActiveControl property should return the UltraTextEditor in this situation, so you could probably add code to not execute the toolbar command when that control is the ActiveControl.