Home > Net >  WPF exist different menu shortcuts binding as a combination of keys, why use directly when the last
WPF exist different menu shortcuts binding as a combination of keys, why use directly when the last

Time:09-19

WPF exist different menu shortcuts binding as a combination of keys, why use directly when the last of the same key combination response

CodePudding user response:

Last but not the current get focus or control over access to focus the routing upper get event

When using the composite key, actually principle is through the rid_device_info_keyboard Focue elements, namely will receive Keyboard message from the Keyboard focus element, and receive Keyboard message routing event, that is, when the access to the Keyboard message came up through the routing control just binding key combination order, then will trigger the controls

CodePudding user response:

But I am of A menu (which is), operation menu button corresponding key combination (Ctl + D),,,, actually the debug I found the execution of A program is A menu button corresponding B (the button key combination with A menu are the same Ctl + D) the content of the execution, did not carry out the Focus of A menu operation, this how to solve?
  •  Tags:  
  • C#
  • Related