Where are an addons keyboard shortcuts handled and how can they be traced?

This seems to what I am looking for.

My reasons are:

  1. I want leader keys to bring up a menu of commands I can run regardless of what addon it is. SurfkingKeys for instance presents a menu when you press a leader key like ‘y’ and already I am able to run some of TST’s commands in it. So if I add a set of keys for TST functions prefixed by ‘T’ for instance, I can add all TSTs commands and I don’t have to remember all its keyboard shortcuts.

  2. Seeing all the existing shortcuts at once is not possible because addons display only their shortcuts for modification, and Manage Extension Shortcuts only displays a few of them at a time. The Firefox UI does not enable you to see all of them at a go, and changing them is often trial and error because of conflicts.
    I need to see all of them in a single list at runtime and this is why I need those runtime data structures.