Carsten Driesner wrote: > If OpenOffice.org executes a command, it doesn't distinguish between > different user interface elements. It even cannot determine which user > interface element has dispatched a command.
If that might sound like a deficiency: it isn't, it's a concept. A command is something applied to an implementation through its dispatch API. It doesn't matter from which source the dispatch call is triggered, always the same will happen. That's how APIs should work. ;-) I still don't understand why you want to do different things for a command being triggered from either the menu or from the keyboard. In this case it looks as if you should have two commands. This is comparable to the "printing" functionality in OOo: "File - Print" and "CTRL-P" are boud to ".uno:Print" and this command first opens a print dialog before printing starts. OTOH if you press the printer button in the toolbar the command ".uno:PrintDirect" is executed instead that immediately starts to print without showing a dialog. So in your case you can use two commands, both assigned to a shortcut, but only one appearing in the menu.Ciao, Mathias -- Mathias Bauer - OpenOffice.org Application Framework Project Lead Please reply to the list only, [EMAIL PROTECTED] is a spam sink. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
