我開發一個Firefox插件,併爲我所用的覆蓋,現在我想,如果有人按下喜歡控制的關鍵 + Ĵ應該打開我的延伸,如果有人按下ctrl + space它應該執行JavaScript函數。XUL快捷鍵
我嘗試這樣做:
<keyset id="mainKeyset">
<key id="keyOpen" keycode="VK_J" oncommand="document.getElementById('menuboard').showPopup(document.getElementById('mypanel'), -1, -1, 'popup', 'topleft', 'bottomleft');"/>
<key id="keyExecute" modifiers="control" keycode="VK_SPACE" oncommand="javascript:myfucntion();"/>
</keyset>
但是,在它不工作我很想念任何人可以幫助我,請。
感謝,
賈斯萬特·