Skip to content

fix(keymap): highlight Arabic lam-alef key as single key (@byseif21) - #8325

Open
yehiahesham2938 wants to merge 1 commit into
monkeytypegame:masterfrom
yehiahesham2938:fix/arabic-keymap-highlight
Open

fix(keymap): highlight Arabic lam-alef key as single key (@byseif21)#8325
yehiahesham2938 wants to merge 1 commit into
monkeytypegame:masterfrom
yehiahesham2938:fix/arabic-keymap-highlight

Conversation

@yehiahesham2938

Copy link
Copy Markdown

Description

  • Fixed keymap react mode not highlighting the "لا" (lam-alef) key as a single keypress on arabic_101 and arabic_102 layouts.
  • Updated arabic_101.json and arabic_102.json to use canonical Arabic Unicode sequences (لا, لآ, لإ, لأ) instead of presentation form characters (\uFEFB, etc.).
  • Updated KeyLegendsSchema in packages/schemas/src/layouts.ts to support multi-character key legend strings.

Checks

  • Adding quotes?
  • Adding a language?
  • Adding a theme?
  • Adding a layout?
    • Make sure to follow the layouts documentation
    • Add layout to packages/schemas/src/layouts.ts
    • Add layout json file to frontend/static/layouts
  • Adding a font?
  • Check if any open issues are related to this PR; if so, be sure to tag them below.
  • Make sure the PR title follows the Conventional Commits standard. (https://www.conventionalcommits.org for more info)
  • Make sure to include your GitHub username prefixed with @ inside parentheses at the end of the PR title.

Closes #6411

Copilot AI lite review requested due to automatic review settings August 6, 2026 15:04
@monkeytypegeorge monkeytypegeorge added frontend User interface or web stuff assets Languages, themes, layouts, etc. packages Changes in local packages labels Aug 6, 2026
@github-actions github-actions Bot added the waiting for review Pull requests that require a review before continuing label Aug 6, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes Arabic 101/102 keymap legend data to represent lam‑alef as a canonical multi-codepoint sequence, and relaxes schema validation so layouts can carry multi-character legends.

Changes:

  • Allow multi-character key legends in @monkeytype/schemas layout schema.
  • Update arabic_101 / arabic_102 layout JSON to use canonical sequences (لا, لآ, لإ, لأ) instead of presentation forms.
  • Add a converter spec for arabic_101; also includes an unrelated burst-history change in stats.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/schemas/src/layouts.ts Relax key legend string constraint to permit multi-char legends.
frontend/static/layouts/arabic_101.json Swap Arabic ligature presentation forms → canonical sequences.
frontend/static/layouts/arabic_102.json Same as arabic_101 for 102 layout.
frontend/src/ts/test/events/stats.ts Burst-history predicate now includes composition input type for Korean context (scope creep vs PR).
frontend/tests/components/pages/test/keymapConverter.spec.ts Adds coverage for arabic_101 canonical multi-char ligature conversion.

Comment on lines +1136 to +1139
);

expect(row4?.[4]).toEqual(expectLegend("لا", "لآ"));
});
Comment on lines +267 to +271
(e) =>
e.type === "input" &&
(e.data.inputType === "insertText" ||
(eventLog.context.koreanStatus &&
e.data.inputType === "insertCompositionText")),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

assets Languages, themes, layouts, etc. frontend User interface or web stuff packages Changes in local packages waiting for review Pull requests that require a review before continuing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Keymap doesn’t highlight "لا" as a Single Key in react mode ( arabic_101 / arabic_102 Layout).

3 participants