Hi Jean-Baptiste,
Jean-Baptiste BRIAUD - Novlog wrote:
> Hi,
>
> Is it valid to use a Command without a keystroke ?
>
> I want to have some Command to share action (eventually in several
> different menu) but those action won't be started by keyboard but only
> via menu.
>
> I don't know if I can instantiate a qx.event.Command() or a
> qx.event.Command(null) or a qx.event.Command("") ...
>
> any idea ?
Just create your command instance without a parameter :)
--snip--
var myCmd = new qx.event.Command();
myMenuItem.setCommand(myCmd);
myMenuItem2.setCommand(myCmd);
--snip--
This way the command won't registering any listener for a shortcut and
the menu item won't display any shortcut. It will only dispatch the
"execute" event when any menu item is clicked. Just the way you need it :)
cheers,
Alex
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel