Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-4866

Allow focussing arbitrary components/elements

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: 9.5.1.2
    • Fix Version/s: 9.6.0
    • Component/s: ZK Client Engine
    • Security Level: Jimmy

      Description

      User Story


      As an developer, I want to set focus to arbitrary page elements so that users with screen readers can be guided through a UI programmatically

      Acceptance Criteria

      e.g. allow focusing a label or a div

      <zk>
          <label id="headline" tabindex="-1" value="focus me" />
          <button onClick="headline.focus()"/>
      </zk>
      

      Details

      currently 'not all' widgets support focus (without a specific list)
      https://www.zkoss.org/javadoc/latest/jsdoc/zk/AuCmd1.html#focus-zk.Widget-

      In general any component can have a tabindex so they should also be focusable

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              DevChu DevChu
              Reporter:
              cor3000 cor3000
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: