【发布时间】:2011-07-28 08:43:40
【问题描述】:
我有以下代码:
MyPlayPause.InputGestures.Add(new KeyGesture(Key.P, ModifierKeys.Control));
我需要添加另一个手势,所以我可以使用 SHIFT + CTRL + P 但是当我添加以下选项时它会中断:
MyPlayPause.InputGestures.Add(new KeyGesture(Key.P, ModifierKeys.Control));
换档选项。我收到此错误:'Shift+F' key and modifier combination is not supported for KeyGesture.
知道为什么吗?我需要复制媒体播放器快进按钮的功能。
【问题讨论】:
-
通过查看social.msdn.microsoft.com/Forums/en/wpf/thread/… 解决了糟糕问题
标签: c# wpf keyboard-shortcuts