Hi,
The following snippet shows the behaviour in the demo browser as well:
- Run the code
- Click the combo to focus it (should this even work?)
- Now press ALT + DOWN and the dropdown opens.
- Using the arrow keys you can select any item, press enter and select it
I guess the last two things shouldn't be possible for a blocked widget.
======================== Start snippet ===================================
// Allow blocking of any widget
qx.Class.include(qx.ui.core.Widget, qx.ui.core.MBlocker);
// Document is the application root
var doc = this.getRoot();
var combo = new qx.ui.form.ComboBox();
combo.add(new qx.ui.form.ListItem("item1", null));
combo.add(new qx.ui.form.ListItem("item2", null));
// Add button to document at fixed coordinates
doc.add(combo,
{
left : 100,
top : 50
});
// Block all events
combo.block();
======================== End snippet ===================================
Best regards,
Jeroen
From: Martin Wittemann [mailto:[email protected]]
Sent: dinsdag 13 september 2011 8:55 AM
To: qooxdoo Development
Subject: Re: [qooxdoo-devel] blocked DateField still shows the calendar dropdown
Hey,
I used the Mixin Mblocked to block the combo (combo.block() ).
This is because I don't want to disable the controls since the disabled look is
not very well readable (e.g. on beamers with demo's).
But somehow I think thats a wrong approach. If the disabled widgets don't look
the way you like them, you should change the styling. If you want to have
disabled widgets, you should disable them.
In the documentation of the blocker I read that all events are blocked, but the
keyboard events don't seem to get blocked.
Nevertheless, this should work. Could you maybe build a little sample snippet
showing your behavior which runs in the playground? Would be perfect to check
if its really a bug in our implementation which we should get fixed.
Regards,
Martin
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel