Multiple Key Gestures for custom keyboard shortcuts in WPF

馋奶兔 提交于 2019-12-06 14:15:44

问题


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?

来源:https://stackoverflow.com/questions/2194714/multiple-key-gestures-for-custom-keyboard-shortcuts-in-wpf

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!