Firefox Extension Keysets

Posted in development, firefox at 8:43 pm by wingerz

I helped my friend and colleague, Elias, debug his Google Calendar Quick-Add Firefox extension a a few weeks ago. The problem was that on some machines (including mine) the keyboard shortcut was not registered correctly (even though it showed up when we ran KeyConfig). Since KeyConfig itself successfully added a keyboard shortcut, I extracted the code to take a look.

Apparently in some configurations newly created keysets in the extension’s overlay.xul file are not added to existing global keysets. I changed the code from this:

to this:


  1. jcly said,

    May 4, 2006 at 8:56 pm

    you sound like a cute geek!

  2. Russianger said,

    May 12, 2006 at 3:03 am

    KeyConfig helped out :)

  3. billy said,

    December 9, 2006 at 7:06 pm

    Thank you very much! The mozilla docs don’t cover this when they talk about keysets and keys.

  4. wingerz said,

    December 12, 2006 at 10:08 am

    Glad you found it helpful!

  5. Ed said,

    August 12, 2007 at 2:06 pm

    Thanks for post this. I spent about an hour slogging thru the docs trying to figure out why the key wasn’t binding to the menuitem. Then spent a few seconds with google and your results did the trick. I need to start using google first. :P

Leave a Comment