This is the problem that we are facing with the application shortcuts in RibbonWindow.
By default the ribbon window displays the KeyTipAccessText whenever the application receives “Alt” or “F10” key pressed event.
Our application is kind of graphics design application (like Visio / Blend design). We have requirement as in Microsoft visio where the application window should not accept any key press event when there is an design operation is in process (i.e resizing an graphic object or rotating an graphic object) . But whenever the user press “Alt” or “F10” key while an design operation is in process the main application receives the event somehow and displays the “KeyTipAccessText” for all the controls in the menu which we don’t want.
Analysis and Fix ??
I tried using “OnPreviewKeyDown” event in the ribbon window class to handle the event (Just did "e.Handled = true"). This just works fine for the first time I press the “Alt” or “F10” key not the second when the design operation is in process. I am not sure this is the correct way of implementing our requirement ? (I have checked the RibbonWindow API which is not doing anything on “OnPreviewKeyDown”. So I don’t know where the logic for displaying the KeyTipAccessText is called ?)
My question is “Is there way to control when the KeyTipAccessText should be displayed?”.
Can you help me by providing some references that i can use ?