预设金钥 [英] Default Key

查看:150
本文介绍了预设金钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我的应用程序中有一个要由该应用程序的用户填写的表单,无论用户使用的是什么文本框,如果他在任何时间点都按下回车键,都必须使用该表单默认情况下会触发保存"按钮...有人可以帮我吗?

谢谢,
Chetan.

Hey Guys, In my application I have a Form that is to be filled by the user of the application, in that form no matter on what TextBox the User is on and if he hits enter key at any point of time I want the Save Button to be triggered by default...can anybody help me with this??

Thanks,
Chetan.

推荐答案

您难道无法捕获Enter键,并且每当此事件发生时,都会触发特定的提交按钮事件吗?
Can''t you trap the enter key press and whenever this event happens, trigger a particular submit button event?


这篇关于预设金钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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