Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove menu item shortcut #12

Open
Perelandra0x309 opened this issue Dec 31, 2016 · 3 comments
Open

Remove menu item shortcut #12

Perelandra0x309 opened this issue Dec 31, 2016 · 3 comments

Comments

@Perelandra0x309
Copy link

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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. )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants