Skip to content

🐞 Bug: Keyboard shortcuts don’t work properly on layouts with number behind Shift #1618

@blfpd

Description

@blfpd

Bug Description

Using the keyboard layout BÉPO (aka French Dvorak), the number are not on direct access.

Pressing 2 gives me «, pressing Shift+2 gives me 2.

I can’t access the page for Project because I’d need to press Ctrl+Shift+2 and it navigates me to the appearance settings page.

Steps To Reproduce

  1. Switch to a layout without numbers on direct access
  2. Try to switch to top level pages

Expected Behavior

Pressing the physical Ctrl+2 should navigate me to Projects

Actual Behavior

Pressing the physical Ctrl+2 does nothing because the app is not listening to ctrl + «.

Screenshots

No response

Arcane Version

v1.14.0

Installation Method

Docker Compose (Recommended)

Environment Type

Local Docker (Single instance)

Database Type

SQLite (Default)

Operating System

Linux

Docker Version

29+

Browser & Version

No response

Relevant Logs or Error Messages

Docker Compose Configuration

Environment Configuration (.env file)

Additional Context

The fix is to not watch for event.key (1, 2, 3…) but instead act on event.code (Digit1, Digit2, Digit3…) instead.

Keep the logic similar for Ctrl and Shift

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions