2013-06-04 165 views

回答

2

命令API允许用户定义特定的命令,并将其绑定到一个缺省键组合。您的扩展接受的每个命令都必须作为“命令”清单键的属性列在清单中。

:命令格式

 
Properties of Command 

    name (optional string) 
     The name of the Extension Command EX: 'execute_browser_action' or '_execute_page_action' or some other custom name 
    description (optional string) 
     The Extension Command description 
    shortcut (optional string) 
     The shortcut active for this command, or blank if not active. 

:可能的组合

组合涉及Ctrl键 + Alt键没有在为了避免与冲突允许AltGr键。另请注意,在Mac上Ctrl会自动转换为命令。如果你想按Ctrl代替,请注明MacCtrl

,从而可以参照欲了解更多信息:

Google Chrome: maximum of 4 chrome.commands allowed?

参考:

希望这会有所帮助:)