更改F10键命令 [英] Change F10 Key command

查看:86
本文介绍了更改F10键命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我正在尝试将自己的事件处理程序分配给F10键,但无法获取任何按键事件.显然,F10键是保留给主窗口菜单的.我尝试创建自己的RoutedCommand并将其与CommandBinding和KeyGesture关联,但是F10键没有响应;它没有响应.其他所有键似乎都起作用.我有一个需要使用F9和F10键在表单之间导航的要求.是否可以在wpf应用程序中覆盖F10键的功能?

谢谢

大卫

解决方案

大卫,您好,

您是否看到过线程. blockquote>

Hello,

 

I'm trying to assign my own event handler to the F10 key, but I'm unable to get any kind of key pressed event. Apparently, the F10 key is reserved for the main window menu. I tried creating my own RoutedCommand and associating it with a CommandBinding and KeyGesture but the F10 key doesn't respond; all other keys seem to work. I have a requirement where I need to use the F9 and F10 keys to navigate between forms. Is there a way to override the functionality of the F10 Key in a wpf app?

 

Thanks,

 

David

解决方案

Hi David,

have you seen this thread ? If that doesn't help, try with a hook. Here's a thread that provides a solution.


这篇关于更改F10键命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆