-
Notifications
You must be signed in to change notification settings - Fork 173
feat(ui): enable multiple keyboard layouts for "paste text" to remote host #405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
adamshiervani
merged 34 commits into
jetkvm:dev
from
dlorch:paste-text-keyboard-layouts
May 21, 2025
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
22849fc
Enable multiple keyboard layouts for paste text from host
dlorch 0bef35e
Trema is the more robust method for capital umlauts
dlorch 99a5e9d
Improve error handling and pre-loading
dlorch a2771f0
Improve accent handling
dlorch c90b042
Remove obscure Alt-Gr keys, unsure if they are supported everywhere
dlorch 33a4f38
Add Swiss French
dlorch ab94eb1
Change line ordering
dlorch e0be7ed
Fix whitespace
dlorch 219573e
Add French (France)
dlorch 12f0814
Add English (UK)
dlorch 0bf05be
Add Swedish
dlorch 18c7b25
Add Spanish
dlorch f810f09
Fix fr_FR special characters
dlorch cd10112
Add more keys to Spanish
dlorch 5fb7a21
Remove default value shift: false
dlorch dd7b2d4
Add Norwegian
dlorch 8364c37
Operator precedence 🤦
dlorch 7065c42
Add Italian
dlorch e10f0db
Add Czech
dlorch f8f225d
Move guard statements outside of loop
dlorch 707a33c
Move language name definitions into the keyboard layout files
dlorch 9b3d1e0
Change the locale names to their native language
IDisposable 146cee9
Move hold key handling into Go backend analogous to https://www.kerne…
dlorch a4d6da7
Remove trailing whitespace
dlorch d075915
Fix
dlorch 9698564
Add Belgisch Nederlands
dlorch 6dd65fb
Add JSONRPC handling
dlorch 7240aba
Use useSettingsStore
dlorch a4c15d5
Revert "Move hold key handling into Go backend analogous to https://w…
dlorch 1460fc5
Move FeatureFlag to navigation
dlorch d962a8f
Fix: flip Y/Z
dlorch 4804929
Add useEffect dependencies
dlorch fc1b304
Embolden language
dlorch 6d18f78
Add to useCallback dependencies
dlorch File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import { chars as chars_fr_BE, name as name_fr_BE } from "@/keyboardLayouts/fr_BE" | ||
import { chars as chars_cs_CZ, name as name_cs_CZ } from "@/keyboardLayouts/cs_CZ" | ||
import { chars as chars_en_UK, name as name_en_UK } from "@/keyboardLayouts/en_UK" | ||
import { chars as chars_en_US, name as name_en_US } from "@/keyboardLayouts/en_US" | ||
import { chars as chars_fr_FR, name as name_fr_FR } from "@/keyboardLayouts/fr_FR" | ||
import { chars as chars_de_DE, name as name_de_DE } from "@/keyboardLayouts/de_DE" | ||
import { chars as chars_it_IT, name as name_it_IT } from "@/keyboardLayouts/it_IT" | ||
import { chars as chars_nb_NO, name as name_nb_NO } from "@/keyboardLayouts/nb_NO" | ||
import { chars as chars_es_ES, name as name_es_ES } from "@/keyboardLayouts/es_ES" | ||
import { chars as chars_sv_SE, name as name_sv_SE } from "@/keyboardLayouts/sv_SE" | ||
import { chars as chars_fr_CH, name as name_fr_CH } from "@/keyboardLayouts/fr_CH" | ||
import { chars as chars_de_CH, name as name_de_CH } from "@/keyboardLayouts/de_CH" | ||
|
||
type KeyInfo = { key: string | number; shift?: boolean, altRight?: boolean } | ||
export type KeyCombo = KeyInfo & { deadKey?: boolean, accentKey?: KeyInfo } | ||
|
||
export const layouts: Record<string, string> = { | ||
be_FR: name_fr_BE, | ||
cs_CZ: name_cs_CZ, | ||
en_UK: name_en_UK, | ||
en_US: name_en_US, | ||
fr_FR: name_fr_FR, | ||
de_DE: name_de_DE, | ||
it_IT: name_it_IT, | ||
nb_NO: name_nb_NO, | ||
es_ES: name_es_ES, | ||
sv_SE: name_sv_SE, | ||
fr_CH: name_fr_CH, | ||
de_CH: name_de_CH, | ||
} | ||
|
||
export const chars: Record<string, Record<string, KeyCombo>> = { | ||
be_FR: chars_fr_BE, | ||
cs_CZ: chars_cs_CZ, | ||
en_UK: chars_en_UK, | ||
en_US: chars_en_US, | ||
fr_FR: chars_fr_FR, | ||
de_DE: chars_de_DE, | ||
it_IT: chars_it_IT, | ||
nb_NO: chars_nb_NO, | ||
es_ES: chars_es_ES, | ||
sv_SE: chars_sv_SE, | ||
fr_CH: chars_fr_CH, | ||
de_CH: chars_de_CH, | ||
}; |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.