Firefox附加快捷方式不起作用了 [英] firefox add-on shortcut does not work anymore
本文介绍了Firefox附加快捷方式不起作用了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在我的browser.xul中使用了以下命令来设置我的插件的快捷方式。
< keyset id =mainKeyset>
modifiers =accel
keycode =VK_F12
oncommand =myfunction()/>
< ; / keyset>
以前版本的Firefox可以工作,但是对于更新的版本则不再适用。
在语法上有什么变化吗?
谢谢 解决方案
这个代码示例看起来是正确的,我怀疑在 myfunction()
中有一些失败的代码,所以我们可能需要更多的信息,试着将 myfunction()
with alert(test)
,那应该可以。
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
解决方案
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 replace myfunction()
with alert("test")
, that should work.
这篇关于Firefox附加快捷方式不起作用了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文