简体   繁体   English

创建提交表单的快捷方式

[英]Create shortcut to submit form

I work entering data online to a form and would like to assign a shortcut to each of two submit buttons.我正在将数据在线输入到表单中,并希望为两个提交按钮中的每一个分配一个快捷方式。 I use Mac and Firefox.我使用 Mac 和 Firefox。 Is there a way to do that in Scriptish, Applescript, or something other?有没有办法在 Scriptish、Applescript 或其他语言中做到这一点?

This is the source for one of them: <<这是其中之一的来源:<<

Thanks谢谢

Try using jQuery Hotkeys尝试使用 jQuery 热键

jQuery Hotkeys lets you watch for keyboard events anywhere in your code supporting almost any key combination. jQuery Hotkeys 可让您在代码中的任何位置监视键盘事件,几乎支持任何组合键。

To bind Ctrl+c to a function (f), for example:要将 Ctrl+c 绑定到函数 (f),例如:

$(document).bind('keydown', 'ctrl+c', f); $(document).bind('keydown', 'ctrl+c', f);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM