Skip to content

Resizable separator: inactive with keyboard #2110

@cyberbaloo

Description

@cyberbaloo

Bug Report

Problematic behavior
The resizable separator between the sidebar and the main content is reachable via Tab. The Home and End keys work correctly, but the left and right arrow keys do not allow resizing the panels.

Expected behavior/code
The left and right arrow keys must allow progressive resizing of the sidebar, just as Home and End allow reaching the extreme values.

Steps to Reproduce

  1. Open a document in Docs
  2. Navigate with the keyboard using Tab to the resizable separator
  3. Press the left and right arrow keys
  4. The panels do not resize — unlike Home and End which work

Possible Solution

<PanelResizeHandle
  onKeyDown={(e) => {
    // Home et End déjà implémentés
    // Ajouter la gestion des flèches
    if (e.key === 'ArrowLeft') resizePanel(-1);
    if (e.key === 'ArrowRight') resizePanel(1);
  }}
/>

Critères RGAA

Critère 7.1 : Chaque script est-il, si nécessaire, compatible avec les technologies d'assistance ?

Impact
A user navigating exclusively with the keyboard can reach the separator and toggle between minimum and maximum sizes via Home and End, but cannot perform progressive resizing with the arrow keys.

Metadata

Metadata

Assignees

Type

Projects

Status

Done

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions