Well, i found a workaround by adding a Command to the close-button.

win.getChildControl("close-button").setCommand(new qx.ui.core.Command("Escape")); win.bind("active", win.getChildControl("close-button").getCommand(), "enabled");

The data-binding stops other modal windows, that are behind the active one, to close as well.
But i'm not sure about using getChildControl.
Is it a good or a bad idea?



Best regards
Eric



Am 16.10.13 19:24, schrieb Eric-Christian Koch:
Hey

I'm having a little problem with not getting "keypress" events on a modal window. My plan is to create some kind of dialog which can be closed by pressing "Escape".
However, it works like a charm with a non modal window.

Are modal windows supposed to ignore key events?
I've tried to find something about this topic with google, but wasn't able to find anything useful.


Playground: http://tinyurl.com/oxxo9bw

modal: false <- works like a charm
modal: true <- nothing happens



Best regards
Eric



--
Eric-Christian Koch

sum.cumo AG
Bahnhofstrasse 27
CH-6301 Zug

Telefon +41 44 48545-13
E-Mail  [email protected]


Attachment: smime.p7s
Description: S/MIME Kryptografische Unterschrift

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to