Menu

#2188 Plugin API: Add API for registering hotkeys

KeePass
open
nobody
None
5
2016-10-09
2016-10-07
Jordan
No

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

Discussion

  • Paul

    Paul - 2016-10-08

    Did you see the description in the two posts here?
    https://sourceforge.net/p/keepass/feature-requests/1890/#73c3

    cheers, Paul

     
    • Jordan

      Jordan - 2016-10-08

      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.

       
  • Paul

    Paul - 2016-10-09

    Thanks for the clarification.

    cheers, Paul

     

Log in to post a comment.