Hi Guilherme,

Guilherme Aiolfi wrote:
> Can't I create 2 commands with the same shortcut?
> 
> For example,
> 
> I have this StackLayout with 2 layers. Both have its own toolbar with a
> "back" button. And I want to use "Escape" to both.
> 
> Is it possible?
Short answer: yes. If you create two command objects both of them will 
listen to the shortcut key and both will fire the "execute" event you 
can listen to.

But you should definetely think your approach over. In most cases it is 
not intented to execute two actions when hitting one shortcut. You 
cannot distinguish which action the user wanted to start, because the 
commands simply fire whenever the keyboard shortcut is hit. Figuring out 
which action is the right to choose could be difficult, I think.

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

Reply via email to