Skip to content

Search shortcut triggers for keys that aren’t k #1645

@flying-sheep

Description

@flying-sheep

This code triggers for all events where event.key contains “k” or “K”, e.g. event.key === "Backspace".

This means that pressing toggles the search popup instead of deleting a word as it should.

/k/i.test(event.key)
) {
event.preventDefault();

The regex should be /^k$/i instead, as done in #1646

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions