javascript - Error in setting keyboard shorcut for extension -


i developing chrome extension setting shortcut actions. problem unable set shortcut(alt+z+3) using manifest file

"commands": { "fullscreen": {   "suggested_key": {     "default": "alt+z+3",     "mac": "alt+z+3"   },   "description": "test"  },  "_execute_browser_action": {   "suggested_key": {     "windows":"alt+z+3",     "mac":"alt+z+3",     "chromeos": "alt+z+3",     "linux":"alt+z+3"   }  },  "_execute_page_action": {   "suggested_key": {     "default": "alt+z+3",     "windows": "alt+z+3",     "mac": "alt+z+3"   }  }  }, 

it throwing errors invalid value 'commands[1].mac': alt+z+3. when change shortcut (alt+shift+3)

  "commands": { "fullscreen": {   "suggested_key": {     "default": "alt+shift+3",     "mac": "alt+shift+3"   },   "description": "toggle feature foo" }, "_execute_browser_action": {   "suggested_key": {     "windows":"alt+shift+3",     "mac":"alt+shift+3",     "chromeos": "alt+shift+3",     "linux":"alt+shift+3"   } }, "_execute_page_action": {   "suggested_key": {     "default": "alt+shift+3",     "windows": "alt+shift+3",     "mac": "alt+shift+3"   } } 

},

it not throwing error. how set shortcut of alt+z+3 in extension.

you cannot use such combination.
scheme following:

(alt | ctrl) + [shift] + <n> 

where:

  1. alt or ctrl required
  2. shift optional
  3. <n> – means single key.
    allowed values:

    a-z, 0-9, comma, period, home, end, pageup, pagedown, space, insert, delete, arrow keys, , media keys.

also, can test combinations using "configure commands" dialog:

chrome://extensions/configurecommands 

docs: chrome.commands


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -