Keyboard shortcut keys Ctrl+M

Issue #19 new
Max created an issue

Your plugin utilizes Ctrl+M for a keyboard shortcut, however “KeeAgent” plugin it utilizing this keyboard shortcut already. I am reaching out to you as the other plugin was created many years before yours.

Would you consider utilizing a different keyboard shortcut? or omitting the keyboard shortcut and just use right click and selecting “Mount volume”)?

I would like to run both plugins, issue is if both plugins are loaded yours no longer works:

Comments (2)

  1. Jerome Gueret

    I experienced something very similar so I upvoted the ticket
    Jump to the conclusion if you don’t want to read it all..


    Details

    At first I couldn’t configure an entry to automate the VeraCrypt mount, the option wouldn’t appear when right-clicking on it it and the Ctrl+M would do nothing

    I came accross this ticket and so I tried to start KeePass without the KeeAgent plugin, still no option for VeraCryptMount in the right-click options list of the entry but Ctrl+M allowed me to configure the mounting process

    From that moment on, the option VeraCryptMount appeared in the right-click list of the entry configured.
    I restarted KeePass with KeeAgent back on and it seems to work fine: KeeAgent as previously and VeraCryptMount for the entry I configured, except for the Ctrl+M shortcut that doesnt' work for mounting the VeraCrypt volume, but as long as the option is displayed in the entry list that’s OK for me

    Now if I want to configure a new entry with VeraCryptMount, I have to disable again the KeeAgent plugin temporarily to do the configuration..


    Conclusion
    I suppose the most annoying part is not being able to configure any entry with VeraCryptMount untill the KeeAgent plugin is disabled. Once all desired entries are configured then both plugins seem to work without noticeable conflicts. (except for the Ctrl+M shortcut)

  2. Ryan

    I had also been experiencing this issue and I also ‘resolved' it in a similar manner as above. However after re-reading this thread I figured I may be able to add an additional custom hotkey similar to what I have done with another plugin, so I looked in the source and came to the conclusion I could actually just change VeraCryptMount’s default keybind. If you download the source and edit KeepassVeraCryptMountExt.cs lines 85 and 90(really only 90 but 85 is for the display so I figure you’d likely want to change this as well to reflect the new shortcut) simply replace the M in “Ctrl+M“ and “Keys.M” to whatever you want. I changed it to N since it was so close I figured it would be easy to adapt to. After you can create the new .plgx (follow https://keepass.info/help/v2_dev/plg_index.html#plgx if you don’t know how but basically just call KeePass.exe --plgx-create) and use that alongside KeeAgent, at least from what I can tell so far, literally just realised and did this 5 minutes ago. I do think it would perhaps be better if there was a context menu entry to select a custom key, but I think that is more on KeePass than this plugin's creator.

  3. Log in to comment