如何在Google Chrome中为扩展程序创建自定义键盘快捷键
Geeks love keyboard shortcuts—they’re often faster than clicking everything with your mouse. We’ve previously covered Chrome and other browsers support many keyboard shortcuts, and Chrome lets you assign your own keyboard shortcuts to extensions you’ve installed.
极客喜欢键盘快捷键-它们通常比用鼠标单击所有内容要快。 之前我们已经介绍了Chrome,而其他浏览器也支持许多键盘快捷键 ,而Chrome浏览器可让您将自己的键盘快捷键分配给已安装的扩展程序。
A Google employee previously offered a “Shortcut Manager” extension that allowed you to set your own custom keyboard shortcuts for browser actions, but it’s been removed from the Chrome Web Store. It looks like Google removed this feature in Chrome 53.
一位Google员工以前曾提供过“快捷方式管理器”扩展程序,该扩展程序允许您设置自己的自定义键盘快捷键来执行浏览器操作,但是该功能已从Chrome网上应用店中删除。 看来Google在Chrome 53中删除了此功能 。
Google Chrome does, however, allow you to assign custom keyboard shortcuts to the extensions you have installed. You can do this from your Chrome extensions page. Click the menu button and select More Tools > Extensions to open it.
但是,Google Chrome浏览器允许您将自定义键盘快捷方式分配给已安装的扩展程序。 您可以从Chrome扩展程序页面执行此操作。 单击菜单按钮,然后选择更多工具>扩展程序将其打开。
Scroll down on the extensions page and click the “Keyboard Shortcuts” link at the bottom right corner of the page.
在扩展页面上向下滚动,然后单击页面右下角的“键盘快捷键”链接。
Click inside the box next to an extension and press a key combination to create your keyboard shortcut. Click the “x” button in the box if you don’t want any keyboard shortcut assigned to the action.
在扩展名旁边的框内单击,然后按组合键以创建键盘快捷键。 如果您不想为操作分配任何键盘快捷键,请单击框中的“ x”按钮。
When you assign a keyboard shortcut to “Activate The Extension”, you can press the key combination in Chrome and Chrome will perform the same action that occurs when you click the extension’s icon on Chrome’s toolbar.
当您为“激活扩展程序”分配键盘快捷键时,您可以在Chrome浏览器中按组合键,并且Chrome浏览器将执行与单击Chrome浏览器工具栏上的扩展程序图标时相同的操作。
Some extensions offer additional actions beyond “Activate The Extension”. For example, the Google Play Music app allows you to set your media keys for actions like “Next Track”, “Play/Pause”, “Previous Track”, and “Stop Playback”. You can set custom keyboard shortcuts for the individual actions, and you can even select whether the keyboard shortcuts only work “In Chrome” or are “Global” and work no matter which application window is focused on your computer.
某些扩展程序提供了除“激活扩展程序”之外的其他操作。 例如,您可以使用Google Play音乐应用设置媒体键,以执行“下一首”,“播放/暂停”,“上一首”和“停止播放”之类的操作。 您可以为各个操作设置自定义键盘快捷键,甚至可以选择键盘快捷键仅在“ Chrome浏览器中”工作还是在“全局”工作,而不管计算机上的应用程序窗口是什么。
If you’re using the keyboard shortcut to activate an extension, you can even hide the extension’s icon (by right-clicking it and selecting “Hide in Chrome Menu”) to free up some room on Chrome’s toolbar.
如果您使用键盘快捷键来激活扩展程序,甚至可以隐藏扩展程序的图标(右键单击该扩展程序,然后选择“隐藏在Chrome菜单中”),以释放Chrome浏览器工具栏上的空间。
Image Credit: mikeropology/Flickr
图片来源: mikeropology / Flickr
翻译自: https://www.howtogeek.com/127162/how-to-create-custom-keyboard-shortcuts-for-browser-actions-and-extensions-in-google-chrome/
原文地址: https://blog.csdn.net/culiyuan8310/article/details/108797410
本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
相关文章