Skip to content

Add Ukrainian keyboard layout - #101

Open
ivan-necheporenko wants to merge 1 commit into
jetkvm:mainfrom
ivan-necheporenko:feat/ukrainian-keyboard-layout
Open

ivan-necheporenko wants to merge 1 commit into
jetkvm:mainfrom
ivan-necheporenko:feat/ukrainian-keyboard-layout

Conversation

@ivan-necheporenko

@ivan-necheporenko ivan-necheporenko commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Refs jetkvm/kvm#1843 · Matching PR for the JetKVM web UI: jetkvm/kvm#1844

Summary

  • Adds the Ukrainian keyboard layout (uk_UA), based on the Windows "Ukrainian (Enhanced)" layout like the other layouts.

Testing

Ran npm run lint (including keyboard:check) locally, passing. I did not run the e2e suite (tools/e2e/run.sh) on a device.

Summary by CodeRabbit

  • New Features
    • Added support for the Ukrainian keyboard layout, selectable as “Українська.”
    • Ukrainian characters, punctuation, and currency symbols are mapped to keyboard input, with display labels and virtual keyboard support included.

Based on the Windows "Ukrainian (Enhanced)" layout, as in
jetkvm/kvm#1843.
@coderabbitai

coderabbitai Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Changes: Ukrainian keyboard layout

Layer / File(s) Summary
Define Ukrainian key mappings and layout
frontend/jetkvm-ui/src/keyboardLayouts/uk_UA.ts
Adds Ukrainian character and display mappings, inherits selected values from en_US, and assembles the uk_UA layout.
Register the layout
frontend/jetkvm-ui/src/keyboardLayouts.ts
Imports uk_UA and adds it to the exported keyboards array.

Suggested reviewers: adamshiervani

Change: Feature

Merge Risk: Minimal · up to 73447

This adds a Ukrainian keyboard layout option and does not change existing layouts. No concrete problems were found, so the risk of merging is minimal. The pull request description still contains a placeholder for the matching web UI PR reference.

Security architecture risk: Minimal · up to 73447

JetKVM adds Ukrainian as a keyboard layout through the existing layout selector. Macro key names can display in Ukrainian without changing the underlying key identifiers or who can send input.

Security review details

Trust Boundaries and Controls

  • observed — The settings value is compared with identifiers in the bundled catalog. The new match selects a fixed layout object; it does not let the settings value define mappings or load a layout module.

Data and control flow

  • observed — MacroForm passes the selected layout to MacroStepCard. The card uses its keyDisplayMap for picker labels and selected-key labels, falls back to the raw key string when a label is missing, and keeps the original key identifier as the picker value.

Resilience and Maintainability Implications

  • observed — The existing en-US fallback still resolves unsupported layout identifiers, including uk-UA in the merge-base frontend. This preserves frontend layout resolution, not Ukrainian labels or device-side input behavior after rollback.

Rollout and rollback

  • inferred — The catalog addition does not change who can permit or stop input. An operator does not need to clear uk-UA for the merge-base frontend to resolve a layout after rollback: it uses en-US instead. This does not establish that the device or host uses the same layout.
Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 79bed6ba-046d-4b59-aa0a-f21ca53c66f0
Commits

Reviewing files that changed from the base of the PR and between ed39c11 and 73447e6.

Files selected for processing: 2

  • frontend/jetkvm-ui/src/keyboardLayouts.ts
  • frontend/jetkvm-ui/src/keyboardLayouts/uk_UA.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant