Skip to content

Edge case in #3859 with keyboard navigation #3871

Description

@softins

Describe the bug

In the improved connect dialog handling of #3859, there is an edge case with keyboard navigation.
If the server list from the directory has only one server, it is not possible to select it with the keyboard.
When using Tab to move into the server list, no server is initially selected. Pressing cursor Down or Up
moves to the next server in the list and selects it. However, if there is only one server in the list, the cursor
keys are not accepted, and it is impossible to select that single server without using the mouse.

To Reproduce

Open the connect dialog and select a custom directory which only contains a single server.
One such directory is newjam.softins.co.uk. Using only keyboard, Tab into the server list. The server
is not selected. Press Down or Up. The server remains unselected.

Expected behavior

Being able to select the single server. So that when Tabbing into the list, if there is no saved server from
being previously in the list, it should select the first item by default.

Version of Jamulus

3.12.3dev-a24e09ce, after merge of #3859. Also present in backport #3870 currently, not yet merged.

Additional context

Fix is ready, will raise PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions