Talk about add-ons and extension development.
6 posts • Page 1 of 1
These days I'm trying to make an extension for Firefox that uses a keyboard shortcut.
I have just found that, in a Firefox (22.214.171.124 or 3a8pre) with no extensions, keyboard shortcut doesn't work if keyset id is not "mainKeyset", but if I install Adblock Plus to that Firefox, keyboard shortcut work both with id="mainKeyset" or with no specified id.
Why occurs this? It's "a bug or a feature"? It's pretty rare isn't?
I've posted a discussion also in http://developer.mozilla.org/en/docs/Ta ... _Shortcuts
note: I think this also occurs with commandset id="mainCommandSet" in XUL or Noscript as extension, but I have not tested it thoroughly.
I think this is the reason my version of <a href="http://mikelward.com/software/firefox/mac-shortcuts">Mac Shortcuts</a> works in Firefox, but not in Sunbird. Firefox's main keyset has an id, but Sunbird's doesn't.
Will be easy to test...
I'm probably wrong. I tried removing the mainKeyset attribute from my Firefox extension, and it still seems to work. (Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:126.96.36.199) Gecko/20071025 Firefox/188.8.131.52)
Keysets don't need that ID to work. They may need that ID if you're using them in an overlay and you're expecting them to be applied to the document you're overlaying. I don't know why having Adblock would be different - maybe it's doing something to get around that restriction and your keys are going along for the ride.
They should mention this in a big fat bold red font on the MDC cause i waisted hours searching for this info, until a nice forum member gave me the answer. I am really getting annoyed about those little things which aren't documented clearly and make the development of my extension so much harder.
(PS Really, if i knew this before i started with the firefox extension i would have tried my luck on IE. At least msdn does have some solid documentation, which is a shame cause the possibilities with FF are almost limitless if you at least know how to use it)
Go to http://developer.mozilla.org/en/docs/Overlay#Overlays_and_ID_Attributes, click [Edit], and changed the text format to big fat bold red font.
6 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests