C2LC-439: Keyboard input modal only traps focus in one direction.

Metadata

Source
C2LC-439
Type
Sub-task
Priority
N/A
Status
Done
Resolution
N/A
Assignee
N/A
Reporter
Created
2021-08-25T04:12:16.636-0400
Updated
2021-11-25T09:56:22.917-0500
Versions
N/A
Fixed Versions
  1. Coding Env 1.0
Component
  1. Coding Environment

Description

When the keyboard input modal is open, it traps focus so that tabbing forward eventually wraps around to the first element in the modal. The same is not true when using shift+tab. When you reach the first focusable element and hit shift+tab, your focus goes somewhere that isn't visible. No matter how many times you hit shift+tab, the focus never moves to the last focusable element. Interestingly, even if you hit shift+tab multiple times, you only have to hit tab once to get back to the first focusable element.

Comments

  • Tony Atkins [RtF] commented 2021-08-25T04:26:42.916-0400

    I also noticed that forward wrapping is not ideal, you end up on the location bar after hitting tab on the last focusable element. Hitting tab again takes you to the first focusable element.

  • Tony Atkins [RtF] commented 2021-08-25T04:32:13.093-0400

    I realised after commenting that focusing on the location bar might be intentional, we should discuss before working on this, as either way it should be consistent when navigating in both directions.

  • Tony Atkins [RtF] commented 2021-11-25T09:56:22.917-0500

    This was fixed when C2LC-531 was merged.