2013-06-04 129 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?

參考:

希望這會有所幫助:)