cboulanger / qx-contrib-Dialog

A set of often used dialog widgets for the qooxdoo framework (deprecated, use qooxdoo/qxl.dialog instead)
6 stars 10 forks source link

Tab focus handling #12

Open schnepe2 opened 7 years ago

schnepe2 commented 7 years ago

The Tab (-keyboard) handling does not work as expected. Most prominent "issue" when used with e.g. Confirm Dialog/Window. To reproduce, just go to the Demo Site and "tab" to the Confirm button, open the Dialog (via <Space> or <Enter>) ..and try to select either "Yes" or "No" button via <Tab>

I've had a similar issue once ago and I think I had to "steal" the focus on opening of the dialog/window and then "restore" the previous one on closing. This might be a bit more complicated for the "chained" dialogs/windows...

cboulanger commented 7 years ago

The focus is "stolen" and "returned" as you suggest, but the problem is that the widget is not the "root" of focus and tabs (see qx API). I have asked on the qooxdoo gitter chat for some guidance on how to solve this issue.