如何在网页中使用箭头键从一个控件移动到另一个控件 [英] How Arrow keys can be used in webpage to move from one control to another

查看:83
本文介绍了如何在网页中使用箭头键从一个控件移动到另一个控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,





我使用的是VS2005,ASP.NET,C#.NET。如何在网页中使用箭头键从一个控件移动到另一个控件?使用箭头键,光标应该移动到网页中的可编辑控件,而不是只读控件。



提前感谢

george

Hi friends,


I am using VS2005,ASP.NET,C#.NET. How Arrow keys can be used in webpage to move from one control to another ? Using arrowkeys , the cursor should move to the editable , not read only control in the webpage.

thanks in advance
george

推荐答案

没有直接的方法可以像我们使用TabIndex进行控制一样。您需要尝试使用Javascript / Jquery。



请参阅以下链接,可以帮助您入门。



http://forums.asp.net/t/1455494.aspx [ ^ ]

http://ctrlshiftb.wordpress.com/2010/02/03/how-to- add-keyboard-navigation-for-jquery-ui-tabs / [ ^ ]
There is no direct way of doing it like we use TabIndex for Controls. You need to try with Javascript/Jquery .

Refer below links which can get you started.

http://forums.asp.net/t/1455494.aspx[^]
http://ctrlshiftb.wordpress.com/2010/02/03/how-to-add-keyboard-navigation-for-jquery-ui-tabs/[^]


这篇关于如何在网页中使用箭头键从一个控件移动到另一个控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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