为网页上的特定按钮创建快捷键|铬合金 [英] Creating a shortcut keys for a specific buttons on the webpage | chrome

查看:130
本文介绍了为网页上的特定按钮创建快捷键|铬合金的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我有两页: 客户页面

Assume that i have two pages: Client page

项目页面

在两个页面中我都有一个添加按钮,是否可以创建诸如 ctrl + A 的快捷键strong>将单击添加按钮,并且 ctrl + B 将用于提交, ctrl + E (新实体)?非常感谢

in both pages i have an Add buttons, is it possible to create a shortcut keys like ctrl + A will click on the Add button and ctrl + B will be for submitting and ctrl + E for new Entity ? many thanks in advanced

推荐答案

是的,这绝对有可能!

您可以自己构建代码,但是重新发明轮子没有意义,因此请尝试使用一个预构建库.例如: https://craig.is/killing/mice

You can build the code yourself, but there is no point in reinventing the wheel, so try one of pre-build libraries. For example: https://craig.is/killing/mice

您可以创建自定义快捷方式并将其绑定到javascript函数. 这些功能将处理该动作.

You can create custom shortcuts and bind them to javascript functions. These functions will than process the action.

祝你好运!

另请参阅:如何在现有的JavaScript函数中添加JavaScript键盘快捷键?

这篇关于为网页上的特定按钮创建快捷键|铬合金的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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