humdingerb / clipdinger

A tool to manage a history of the system clipboard
MIT License
5 stars 7 forks source link

Remove menu item shortcut #12

Open Perelandra0x309 opened 7 years ago

Perelandra0x309 commented 7 years ago

Should the Remove menu items in the right click menus for the History and Favorites entries show the DEL key shortcut since that is a viable key stroke?

humdingerb commented 7 years ago

Would be nice. Unfortunately, AFAIK every shortcut used in menu items will have an "ALT" command key added. If you know a simple, not too hackish way to add shortcut without command key, I'm a all ears.

Perelandra0x309 commented 7 years ago

Yes I guess you're right since the DEL isn't actually a shortcut, just an alternate input to achieve the same result. What if you derive your own MenuItem class and override the DrawContent() function to put a DEL icon on the right? Create a bitmap of the icon and draw it like: https://github.com/Perelandra0x309/einsteinium/blob/master/src/Launcher/AppMenuItem.cpp#L83

humdingerb commented 7 years ago

I'm not prepared to jump through those hoops. I think I'll wait for Haiku'S API to catch up and allow non-CMD key shortcuts for menu items. )