#3123 closed bug (fixed)
Tabbing stops in modal dialog
Reported by: | Jacob | Owned by: | Scott González |
---|---|---|---|
Priority: | major | Milestone: | 1.9.0 |
Component: | ui.dialog | Version: | 1.5.1 |
Keywords: | accessibility, tabindex | Cc: | |
Blocked by: | Blocking: |
Description
If you launch a modal dialog and try to use the tab key to select elements in your browser the tabbing will halt on an arbitrary element (in this case, the jQuery UI logo in the top left).
The expected behaviour for a modal dialog would be to be "greedy" for keyboard accessbility and force the tabbing to cycle within the dialog alone.
This is reproducable locally and in the demo page ( http://ui.jquery.com/functional_demos/#ui.dialog with modal dialog selected)
Change History (11)
comment:1 Changed 15 years ago by
Component: | ui.core → ui.dialog |
---|---|
Owner: | changed from paul to scott.gonzalez |
comment:2 Changed 15 years ago by
Milestone: | → TDB |
---|
comment:3 Changed 15 years ago by
Status: | new → accepted |
---|
comment:5 Changed 15 years ago by
Milestone: | TBD → 1.6 |
---|---|
Resolution: | → fixed |
Status: | accepted → closed |
Fixed in [662].
comment:6 Changed 14 years ago by
Milestone: | 1.6 → 1.6rc1 |
---|
comment:7 Changed 12 years ago by
Milestone: | 1.6rc1 |
---|---|
Resolution: | fixed |
Status: | closed → reopened |
comment:8 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Dialog: Tabbing out of a modal dialog was possible because keypress doesn't fire for tabs everywhere, switched to keyup. Added Unit Test - Caught by @DomenicDenicola - Fixes #3123 - Tabbing stops in modal dialog
Changeset: 96e5c241e1b26224c53738b590e07290db7a3e54
comment:9 Changed 12 years ago by
Dialog: Tabbing out of a modal dialog was possible because keypress doesn't fire for tabs everywhere, switched to keyup. Added Unit Test - Caught by @DomenicDenicola - Fixes #3123 - Tabbing stops in modal dialog (cherry picked from commit 96e5c241e1b26224c53738b590e07290db7a3e54)
Changeset: 8f16cc304a97c7c3c2b5ab69678d666ec9ebd75a
comment:10 Changed 11 years ago by
This issues still exists in IE 9. While tabbing within a dialog the tab falls out of the dialog.
Possible solution:
Using keypress without the timeout will cause the focus to go to the second element (focus will be given to the first element before the default action of the keypress completes).
Using keyup will make it impossible to tab to the last element because the keyup of the tab from the previous element will be triggered immediately after the last element is given focus.