maoschanz / maoschanz/drawing

i18n break the key shortcuts

Open
#665 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
869
Forks
106
PR merge metrics
No merged PRs in 30d

Description

## Description

In Chinese env, all shortcut can't work since the key map was broken.

I guess it's because the key map was sliced from the string.

e.g. EN [Pencil, Alt+P] become [铅笔, Alt+铅]. (Chinese keyboards are also QWERTY and no Chinese character can be pressed at once.)

### Steps to reproduce the bug

1. Switch to Chinese Language Pack.
2. See the tool list left.

## System

- Device: ASUS TUF Gaming A16 FA607PV_FA607PV
- OS: Linux Mint 22.1
- Desktop environment: Cinnamon 6.4.6
- Package format: (Mint predownloaded)
- App version: 1.0.2

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue by switching to the Chinese language pack and checking the tool list shortcuts. Trace how the shortcut key map is derived from translated labels, then verify that shortcuts work in Chinese as they do in English without breaking the displayed translations.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop, localization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.