View Single Post
Old 08-27-2011, 01:12 PM   #13
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,733
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
The filtered view of the keyboard shortcuts in the widget to just those for the plugin sounds a nice compromise. It was one of the "other options" I had contemplated but wasn't sure how hard it would be - that you suggested it as well means I'll take a look. I could have a "Keyboard shortcuts..." button on my configuration dialogs that opens it up. So yes, any help you choose to volunteer for that is most appreciated

Another gotcha you may have an answer for. If I understand it correctly, the shortcut registration uses the text of the menu item to display in your widget. However I would "ideally" like there to be a way of providing a more descriptive text, that is only used in your widget?

The reason being for plugins like Reading List, the menu looks like this:
Add to list -> ListName1
Remove from list -> ListName1

The problem being that "ListName1" is the submenu action name that will have the keyboard shortcut. And a user can specify a shortcut for both Add and Remove actions. So right now I would have to change the sub menus to instead of just being "ListName1" to instead be "Remove from ListName1".

If instead via the create_menu_action etc I could supply a user friendly description for use in the keyboard widget, the user could see something like:
ListName1 (Add to list)
ListName1 (Remove from list)

Any thoughts? Or should I make all my menus more verbose
kiwidude is offline   Reply With Quote