开发者

Multiple Key Gestures for custom keyboard shortcuts in WPF

开发者 https://www.devze.com 2022-12-18 20:04 出处:网络
Does anyone know if it\'s possible to have key combinations for keyboard shortcuts in WPF? Right now if I want to use CTRL + S as a shortcut I can do the following:

Does anyone know if it's possible to have key combinations for keyboard shortcuts in WPF?

Right now if I want to use CTRL + S as a shortcut I can do the following:

InputGestures.Add( new KeyGesture( Key.S , ModifierKeys.Control ));

But if I want to use CTRL + S , D ... I don't have an overload that takes the D. Is there a way to override this开发者_运维百科 an accept combinations?

0

精彩评论

暂无评论...
验证码 换一张
取 消