simplesamlphp / SAML-tracer

Browser extension for examining SAML messages
https://addons.mozilla.org/nl/firefox/addon/saml-tracer/
BSD 2-Clause "Simplified" License
141 stars 39 forks source link

support for firefox keyboard-shortcuts #60

Closed nand09 closed 2 years ago

nand09 commented 4 years ago

It would be good to have the ability to put a keyboard shortcut that will open the saml-tracer tool.

khlr commented 4 years ago

Hello Fernando!

Thank you for that feature suggestion! May I ask for your motivation for that feature? Do you start SAML-tracer so frequently that a keyboard shortcut would be a real benefit for you? I'm just asking because I didn't miss that feature yet.

nand09 commented 4 years ago

Hi Jan,

I tend to use it pretty often. I usually use it in a private tab and most of the times I open a private tab by using the keyboard so if I can save one click and open the tool while my hands are already on the keyboard then that would be nice.

khlr commented 4 years ago

Hi Fernando,

I will have a look into this 😊 Just a reminder for myself: https://stackoverflow.com/questions/18132873/chrome-commands-keyboard-shortcuts-not-working

khlr commented 4 years ago

I assigned the shortcut ALT + SHIFT + S to open SAML-tracer.

But please note this restriction:

If a key combination is already used by the browser (like "Ctrl+P") or by an existing add-on, then you can't override it. You can define it, but your event handler will not be called when the user presses the key combination.

Hence chances are, that this will (or could) conflict other keyboard shortcuts...

However you can override this shortcut and define your own one: Firefox: https://support.mozilla.org/en-US/kb/manage-extension-shortcuts-firefox Chrome: chrome://extensions/shortcuts