1,801
การแก้ไข
| บรรทัดที่ 652: | บรรทัดที่ 652: | ||
# Check whether that field should take the focus. | # Check whether that field should take the focus. | ||
#* The field must '''NOT''' be skipped (not present in the form's '''{{code|skipseqs}}''' attribute). | #* The field must '''NOT''' be skipped (not present in the form's '''{{code|skipseqs}}''' attribute). | ||
#* The field must '''NOT''' be in disabled or read-only state. | |||
#* | #* The field and its parent element (the corresponding elements in '''{{code|fill_eles}}''' and '''{{code|fill_ele_divs}}''') must '''NOT''' be hidden ({{code|lang=javascript|1= element.style.display !== 'none'}}). | ||
#* ... | #* If the navigation is invoked by {{key press|Enter}}, the element must '''NOT''' be a button. | ||
# | # Proceed if the field in consideration passes all test in Step #2. Otherwise, go back to Step #1. | ||
# Check if the field has a proxy element defined: | |||
#* If yes, define the next focus element as the proxy. | |||
#* Otherwise, define the next focus element as the field in consideration itself. | |||
# Move focus onto the next focus element. (If the element does not share the same modal or tab with the current field, delay this step to allow the modal or tab to open/close.) | |||
==== Setting Up a Field Proxy ==== | ==== Setting Up a Field Proxy ==== | ||