托管应用程序和键盘快捷方式 [英] Hosted applications and keyboard shortcuts

查看:108
本文介绍了托管应用程序和键盘快捷方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello All,

如何使用键盘快捷键控制托管应用程序的行为?我希望实现这一点,如果按下组合键,特定的托管应用程序将获得焦点。我正在使用CCF 2009.

有没有人有提示怎么做?

关于
ronny_kl

解决方案

您是否查看了CCF AgentDesktop项目中的'MyMessageFilter'类Desktop.cs文件?它显示了如何使用各种组合键来驱动CCF AgentDesktop中的菜单点击和应用程序启动。

在您的情况下,您需要在组合键上对应用程序激活默认操作以使应用程序成为焦点。请参阅" setFocusForApplicationID "函数。我假设你将使用你的密钥模式调用'setFocusForApplicationID'函数来使应用程序选项卡成为焦点。


NinadK

Hello All,

how can I control the behavior of a Hosted Application with keyboard shortcuts? I want to achieve that, if a key combination is pressed, a specific hosted application gets the focus. I'm using CCF 2009.

Does anyone have a hint how to do that?

Regards
ronny_kl

解决方案

Have you looked at 'MyMessageFilter' class of Desktop.cs file inside the CCF AgentDesktop project? It shows how various Key combinations can be used to drive the menu clicks and application launching inside CCF AgentDesktop.

In your case, you need to fire default action on the application on a key combination to bring the application into focus. See the function 'setFocusForApplicationID'. I am assuming that you'll invoke the 'setFocusForApplicationID' function with your key pattern to bring the application tab to focus.


NinadK


这篇关于托管应用程序和键盘快捷方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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