feat: Add keyboard layout and paste speed settings#122
Open
MichaelRyom wants to merge 2 commits intosipeed:mainfrom
Open
feat: Add keyboard layout and paste speed settings#122MichaelRyom wants to merge 2 commits intosipeed:mainfrom
MichaelRyom wants to merge 2 commits intosipeed:mainfrom
Conversation
Replace ASCII-only CharCodes paste with layout-aware system supporting 76 keyboard layouts (US, UK, German, French, Nordic, Cyrillic, Arabic, Greek, Hebrew, Georgian, Armenian, Thai, Vietnamese, and more). Changes: - Add layouts.generated.ts with 76 XKB-derived layout maps - Add layouts.ts with browser Keyboard API auto-detection and event-based learning of character mappings - Replace CharCodes-based paste with layout-aware pasteText() using modifier-first key sequence for Windows compatibility - Add targetKeyboardLayout and pasteSpeed storage/atoms for future settings UI - Add learnFromKeyEvent() to keyboard handler to improve auto-detection accuracy over time
Add two new settings to the Settings submenu: - Keyboard Layout: dropdown to select target machine's keyboard layout from 76 available layouts (defaults to US) - Paste Speed: slider control for keystroke delay (1-200ms) with preset buttons for common speeds Both settings persist in localStorage and are used by the layout- aware paste system. Depends on: feat-keyboard-layouts branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds settings UI for selecting the target keyboard layout and adjusting
paste inter-key delay.
layout (used by the layout-aware paste system from PR2)
useful for slower remote machines that drop keystrokes
Files:
Depends on # (keyboard layouts).
https://github.com/MichaelRyom/NanoKVM-USB/tree/upstream/feat-keyboard-layouts