Plugin API: Add API for registering hotkeys
A lightweight and easy-to-use password manager
Brought to you by:
dreichl
I've written a plugin and wanted to assign a hotkey to an action.
The way I found I could do this is find the m_lvEntries
in the MainWindow
and add a delegate to its KeyDown
event. This ofcourse might allow me to override builtin hotkeys or other plugins doing the same.
I'd like to suggest adding a hotkey API allowing plugins to register hotkey-able actions, manage conflicts, and maybe handle hotkey mapping configuration (?) as this would reduce boilerplate for a fairly common plugin task.
Thanks
Did you see the description in the two posts here?
https://sourceforge.net/p/keepass/feature-requests/1890/#73c3
cheers, Paul
Well, I didn't, since I searched for "keyboard shortcut" and "hotkey" but not "hot key" =)
In anycase, I'm refering to keyboard shortcuts while the keepass window is in focus.
It makes sense that registering global hotkeys wouldn't require anything from Keepass itself, but i'd like to add alternative actions for entries (e.g., Open URL in ingocnito tab), which means I need to know Keepass's control by name. Which is a rather ugly approach.
Thanks for the clarification.
cheers, Paul