|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
trouble with shortcut commandsHi,
I'm trying to build a menu with shortcuts. Problem is, I can't link a shortcut with a qx.ui.menu.RadioButton, but I can with a qx.ui.menu.Button. Of course, I can manually set the "execute" listener for a shortcut command to execute the same function as the radio group button's handler, but I wanted to know if that is the only option? Also, is there any way to support gmail like shortcuts, like say pressing g and then i gets me to the inbox? cheers, skar. -- -- The life so short, the craft so long to learn. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@... https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel |
|
|
Re: trouble with shortcut commandsHi skar,
On Friday 06 November 2009 skar wrote: > I'm trying to build a menu with shortcuts. Problem is, I can't link a > shortcut with a qx.ui.menu.RadioButton, but I can with a qx.ui.menu.Button. That's interesting since both classes are sub-classes of "qx.ui.menu.AbstractButton" which does include the "MExecuteable" mixin for commands. > Of course, I can manually set the "execute" listener for a shortcut > command to execute the same function as the radio group button's > handler, but I wanted to know if that is the only option? How do setup the command? --snip-- var commandInstance = new qx.event.Command(); var menuRadioButtonInstance.setCommand(commandInstance); --snip-- This should do the job. > Also, is there any way to support gmail like shortcuts, like say > pressing g and then i gets me to the inbox? Yepp, there is shortcut support. This is the first parameter of the "qx.event.Command" class. See http://demo.qooxdoo.org/current/apiviewer/#qx.event.Command for details. cheers, Alex ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@... https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel |
|
|
Re: trouble with shortcut commands
Hi Alex,
How do setup the command? --snip-- var commandInstance = new qx.event.Command(); var menuRadioButtonInstance.setCommand(commandInstance); --snip-- This should do the job. Thanks for the snippet :) I did the following and the short cut "Ctrl+Alt+C" is shown if I click the Edit menu, but it doesn't show for the view menu. If I change the RadioButton to normal Button, now it shows. main : function() { Well, the command can only be a simultaneous pressing of Ctrl, Alt, Meta, Shift with one of the normal keys. I want it to be a sequence of 2 commands, like g followed by i in case of gmail to reach inbox. Same with GNU screen, emacs etc where a sequence of key presses can be used. I know it's tough to have it in a browser, but still wanted to check with you guys :) cheers, skar. -- -- The life so short, the craft so long to learn. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@... https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel |
|
|
Re: trouble with shortcut commandsHi skar,
On Friday 06 November 2009 skar wrote: > Thanks for the snippet :) Nevermind :) > I did the following and the short cut "Ctrl+Alt+C" is shown if I click > the Edit menu, but it doesn't show for the view menu. If I change the > RadioButton to normal Button, now it shows. Seems you found a bug. Can you please file a report for this and attaching your example for the playground? Just a hint: if you work with RadioButtons you can group them with "qx.ui.form.RadioGroup" to have only one selected. > Well, the command can only be a simultaneous pressing of Ctrl, Alt, > Meta, Shift with one of the normal keys. I want it to be a sequence of 2 > commands, like g followed by i in case of gmail to reach inbox. Same > with GNU screen, emacs etc where a sequence of key presses can be used. > I know it's tough to have it in a browser, but still wanted to check > with you guys :) Currently this is not supported in qooxdoo. If you like to see this feature in qooxdoo you can also file a bug report for this. This helps us to keep an eye on the feature/enhancement wishes. cheers, Alex ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@... https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel |
|
|
Re: trouble with shortcut commandsThe bug is at http://bugzilla.qooxdoo.org/show_bug.cgi?id=3037.Seems you found a bug. Can you please file a report for this and attaching your example for the playground? Yes, I did that too. For this example however, I didn't use it.Just a hint: if you work with RadioButtons you can group them with "qx.ui.form.RadioGroup" to have only one selected. Well, it isn't that important, so I'd like the devs work on something important. Existing shortcut is quite good enough IMHO. cheers skar. -- -- The life so short, the craft so long to learn. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@... https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel |
| Free embeddable forum powered by Nabble | Forum Help |