Adding keyboard shortcuts to the context menu for Google Chrome extensions?

I am trying to make an extension and which uses chrome.contextMenu. I am creating a contextMenu element and it works fine, but now I am wondering if it is possible to add a keyboard shortcut for my element? I looked through the documentation but found nothing. Thank!

+4
source share
1 answer

Unfortunately no. There is an open feature request for it since 2012.

Problem 142840 in chrome: add the "shortcut" property to the chrome.contextMenus API

Reportedly by ja ... @ kiwi-themes.com, August 15, 2012

, , . . "", "Ctrl + C".

API:

   chrome.contextMenus.create({
      title: 'Copy',
      shortcut: 'Ctrl+C',
      id: 'copy',
      contexts: ['all']
 });

. , chrome?

ALT, .

+3

All Articles