I have used following commands in my browser.xul to set a shortcut for my addon.
<keyset id="mainKeyset">
<key id="key_convert"
modifiers="accel"
keycode="VK_F12"
oncommand="myfunction()" />"
</keyset>
It used to work for previous versions of Firefox, but not anymore for newer versions. has anything changed in the syntax?
Thanks
Some notes:
oncommand
attributeCan copy paste this to scratchpad:
That code example looks correct, I suspect that there is some code within
myfunction()
that is failing, so we need more information probably. Try to replacemyfunction()
withalert("test")
, that should work.