Loosing focus by blocking another widget

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Loosing focus by blocking another widget

Tim van Oijen
Hi,

I found an issue today which appears to be an existing bug: http://bugzilla.qooxdoo.org/show_bug.cgi?id=7584
See also a previous question with a nice example of the bug: http://qooxdoo.678.n2.nabble.com/Blocker-steals-keyboard-focus-of-Table-td7584148.html

In short: when blocking a widget that is focusable, the focus of the current focused control is lost.

I found out that the bug is triggered by the fact that the Blocker class (..\qooxdoo-4.0.1-sdk\framework\source\class\qx\ui\core\Blocker.js) backup and restores focus and activation of the widget and other elements (functions _backupActiveWidget and _restoreActiveWidget). I simply removed these functions and the calls to it and as far as I can see, the bug has been solved and everything still seems to work fine, at least for our application.

Is there anybody who knows why a widget is focused when it is blocked and what might be broken in case the whole focuse/active handling is removed from this class, such that only the event-blocking functionality remains?

I am developing on version 4.0.1.

Thanks in advance,
Tim van Oijen

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel