New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Window not focusing in Chrome #9356

Open
MakotoNinja opened this Issue Jul 17, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@MakotoNinja

MakotoNinja commented Jul 17, 2017

There appears to be a bug in Chrome when opening a window from a button where the window isn't focused right away, even if the button is set to focusable : false and keepFocus : false and explicitly calling focus on the window via appear listener.
Here is a playground example: http://tinyurl.com/yclhxrg2
In the example (using Chrome) if you click the 'Launch Window' button, a window opens and if you hit 'Enter', the button executes again, however, if you hit 'Enter' again, the window receives the event.
Works as expected in FF.

Dietrich Streifert @level420 responded on gitter with the following:
@MakotoNinja it seems to be some timing issue. If the call to win.open() in the onExecuteevent handler is de-coupled via a timer function like this qx.event.Timer.once(function() { this.open(); }, win, 0); it works as expected. See the modified playgrouns sample http://tinyurl.com/yapyw62j
@MakotoNinja please open an issue for this. thank you.

@level420

This comment has been minimized.

Show comment
Hide comment
@level420

level420 Jul 18, 2017

Member

Verified on current chrome and edge.

Member

level420 commented Jul 18, 2017

Verified on current chrome and edge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment