Persian keyboard percent key types nothing in Perseus math answer fields
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- javascript
- Domain
- frontend
Research direction
Start with packages/kolibri-common/composables/useKeypad.js, where KEYPAD_KEYS maps keyboard characters to keypad actions; the issue points to the relevant lines. Check nearby tests for keypad input and add coverage for ٪ (U+066A). Done means typing it in a Perseus math answer field inserts a percent sign, stores \%, and the unit test passes.
Written by the indexing model from the issue text.
Description
❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.
Target branch: release-v0.20.x
Observed behavior
- In a Perseus numeric-input or input-number field, pressing
٪(U+066A, Shift+5 on the Persian keyboard layout) inserts nothing. KEYPAD_KEYSinuseKeypad.jsmaps only ASCII%toPERCENT; it already maps Persian٫toDECIMAL.
Expected behavior
٪inserts a percent sign, as%does.
User-facing consequences
- Learners on a Persian keyboard cannot type a percent answer from the keyboard; they must switch layout or use the on-screen keypad's
%key.
Steps to reproduce
- Open
/en/viewer_sandbox/signed in as a superuser, set Content language to فارسی (fa). - Paste an item with a
numeric-inputwidget into Item JSON. - Focus the field in Preview and type
۴۵٪with a Persian keyboard layout. - The field shows
۴۵; Answer state shows{"currentValue":"45"}.
Context
- Kolibri
release-v0.20.xat e3b074b70f, Chromium 159, Linux. - A key the fix for #15636 (closed; physical keys should insert what the matching on-screen key inserts) missed.
- #15968 (for #15802) edits the same
KEYPAD_KEYSlookup.
Acceptance Criteria
- Typing
٪in a Perseus math answer field inserts a percent sign and stores\%. - A unit test covers the
٪key.
AI usage
Claude Code found this during manual QA of the Perseus numeral-normalization branch and drafted this issue.
- Dominant language
- Python
- Stars
- 1.2k
- Forks
- 1.1k
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 87
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from learningequality/kolibri
-
Setup wizard's "Responsibilities as an administrator" step throws when left within 200 ms of openingOpenAPP: Setup Wizard bug DEV: frontend
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
learningequality/kolibri#16097 ·
Maintainers usually reply within 1 day
-
bug DEV: frontend
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
learningequality/kolibri#16050 ·
Maintainers usually reply within 1 day
-
APP: Learn bug DEV: frontend
Difficulty 2/5 1-3 hours Newbie friendliness 30/100
learningequality/kolibri#16096 ·
Maintainers usually reply within 1 day
-
APP: Learn bug DEV: frontend
Difficulty 4/5 3-5 days Newbie friendliness 35/100
learningequality/kolibri#16095 ·
Maintainers usually reply within 1 day
-
APP: Learn bug DEV: frontend
Difficulty 3/5 1-2 days Newbie friendliness 35/100
learningequality/kolibri#16094 ·
Maintainers usually reply within 1 day
All issues in learningequality/kolibri
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
jxxghp/MoviePilot#7699 ·
Maintainers usually reply within 1 day
-
bug TAG: unit tests
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
learningequality/ricecooker#898 ·
-
next
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
j3ko/agent-plugins#80 ·
Maintainers usually reply within 1 day
-
bug:unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Heroic-Games-Launcher/HeroicGamesLauncher#6187 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 82/100
BCStudentSoftwareDevTeam/cas#491 ·
Maintainers usually reply within 8 days