
bulia byak schrieb:
On Jan 11, 2008 10:15 PM, Maximilian Albert <Anhalter42@...173...> wrote:
some time ago there was a discussion about adding keyboard shortcuts to the tooltips in the various toolbars (although I can't find the corresponding posts right now). I have done this in my local repository but wanted to ask before committing it to SVN because
So how did you do this - just added manually, or are they pulled automatically from somewhere? is that only for verbs?
Nope, not automatically. Simply looked up all shortcuts (also for non-verbs) and added them to the respective strings. That's why I asked - it feels a bit awkward and certainly gives wrong hints in case the user's shortcuts were tweaked.
I was just about to ask if there is a way to extract the shortcuts automatically when I discovered that in keys/default.xml there is an attribute for each verb which controls whether its shortcut is displayed in tooltip and menu entry. Questions:
1) For the tool contexts, would it be a good idea to use this attributes in the mnemonic shortcuts rather than the generic ones? (I seem to remember that this was the consensus of the discussion.)
2) For other verbs (e.g., "ZoomDrawing") this attribute is set but the shortcut is only displayed in the menu, not in the tooltip of the corresponding toolbar button. Why?
3) How to automatically extract shortcuts for actions without associated verb? Or would the preferred way be to provide a verb for them, too? Generally, when should verbs be used and when not?
BTW, is keys/defaults.xml the only way for the user to change the keyboard shortcuts?
Max