Tab键在webbrowser控件中不起作用 [英] tab key not working in webbrowser control

查看:115
本文介绍了Tab键在webbrowser控件中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



i已经实现了IDochostUihandler来禁用webbrowser控件中的右键单击,我能够完成此任务
,但现在tab和delete键无法正常工作。所以请任何建议

将非常有帮助。在此先感谢


i have implemented IDochostUihandler to disable right click in webbrowser control,i was able
to accomplish this task, but now tab and delete key is not working.So please any suggestion
will be very helpful. Thanks in advance

推荐答案

我自己也实现了一个webbrowser控件,但到目前为止这个问题并没有发生在我身上,因为我主要使用webcontrol来显示信息和并没有真正提供用户互动。



无论如何,似乎你必须实现一个名为IInputObjects的附加接口。



见这里



http://go4answers.webhost4life.com/Example/tab-delete-keys-not-working-web-browser-69268.aspx [ ^ ]



和微软文档



http://msdn.microsoft.com/en-us/library/windows/desktop/bb761804(v = vs.85).aspx [ ^ ]



对不起,我不能给出一个实际的编码示例,但我猜它是'是的东西;)



(顺便说一句。你在使用MFC还是ATL?因为我使用MFC并且至少删除键对我起作用,所以Tab键被路由购买MFC UI,所以它不可能影响webcontrol :()
I also implemented a webbrowser control myself, but by now this issue hasn''t occured to me because I use the webcontrol mostly for displaying information and not really offering user interaction.

Anyway, as usual, it appears you have to implement an additional interface called IInputObjects.

See here

http://go4answers.webhost4life.com/Example/tab-delete-keys-not-working-web-browser-69268.aspx[^]

and microsoft documentation

http://msdn.microsoft.com/en-us/library/windows/desktop/bb761804(v=vs.85).aspx[^]

I''m sorry I can''t give an actual coding example but I guess it''s something;)

(btw. are you using MFC or ATL? Because I used MFC and at least the Delete Key works for me, the Tab Key gets routed buy the MFC UI anyways so there''s no way it can possibly affect the webcontrol:( )


这篇关于Tab键在webbrowser控件中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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