Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Component/s: ICE-Components
-
Labels:None
-
Environment:Any
Description
Currently, it is possible to focus elements behind the modal window through tabbing and potentially activating them. Only in FF this is not possible. It is necessary to limit the elements that can receive focus via tabbing to only those contained in the modal popup, while it is active.
Activity
Arturo Zambrano
created issue -
Arturo Zambrano
made changes -
Field | Original Value | New Value |
---|---|---|
Assignee | Arturo Zambrano [ artzambrano ] |
Arturo Zambrano
made changes -
Salesforce Case | [] | |
Fix Version/s | 1.8 [ 10161 ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #18397 | Mon Feb 23 09:22:32 MST 2009 | art.zambrano | |
Files Changed | ||||
MODIFY
/icefaces/trunk/icefaces/bridge/lib/extras/style.js
|
Arturo Zambrano
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Fix Version/s | 1.8RC2 [ 10163 ] | |
Fix Version/s | 1.8 [ 10161 ] |
Ken Fyten
made changes -
Fix Version/s | 1.8 [ 10161 ] |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
Assignee | Arturo Zambrano [ artzambrano ] |
fixed at revision... 18397
The previous approach tried to prevent the default behaviour of pressing keys outside of the popup by means of an onkeypress event. The problem is that IE doesn't trigger onkeypress events that don't happen on a focusable element. Moreover, even on a focusable element, the event is not triggered for keys other than letters, numbers or the enter key (e.g. tab, arrows, pgdown, pgup, shift, ctrl, etc.) The same thing happens in Webkit browsers regarding the type of keys that trigger the event, but the event is still triggered even when no elements have focus when the key is a letter, number or enter.
The new approach takes all focusable elements and sets their tabindex attribute to "-1", making them unreachable via the tab key. The previous tabindex values are restored when the modal stops.