Simplest way to tab only through focusable descendants of a particular element?

前端 未结 3 1803
南旧
南旧 2020-12-16 00:28

Let\'s say I have a document full of focusable elements, either because they are innately focusable (like ) or because they have

3条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-16 01:10

    The jQuery UI dialog does this by capturing keydown events, checking if they are for TAB or not, then manually focusing the correct element.

提交回复
热议问题