mirror of
https://github.com/luckfox-eng29/kvm.git
synced 2026-01-18 03:28:19 +01:00
feat(ui): enable multiple keyboard layouts for "paste text" to remote host (#405)
* Enable multiple keyboard layouts for paste text from host * Trema is the more robust method for capital umlauts * Improve error handling and pre-loading * Improve accent handling * Remove obscure Alt-Gr keys, unsure if they are supported everywhere * Add Swiss French * Change line ordering * Fix whitespace * Add French (France) * Add English (UK) * Add Swedish * Add Spanish * Fix fr_FR special characters * Add more keys to Spanish * Remove default value shift: false * Add Norwegian * Operator precedence 🤦 * Add Italian * Add Czech * Move guard statements outside of loop * Move language name definitions into the keyboard layout files * Change the locale names to their native language German->Deutsch et. al. * Move hold key handling into Go backend analogous to https://www.kernel.org/doc/Documentation/usb/gadget_hid.txt * Remove trailing whitespace * Fix * Add Belgisch Nederlands * Add JSONRPC handling * Use useSettingsStore * Revert "Move hold key handling into Go backend analogous to https://www.kernel.org/doc/Documentation/usb/gadget_hid.txt" This reverts commit 146cee9309ca7a8b7ab103e955f3fcc38a4bc692. * Move FeatureFlag to navigation * Fix: flip Y/Z * Add useEffect dependencies * Embolden language * Add to useCallback dependencies --------- Co-authored-by: Marc Brooks <IDisposable@gmail.com>
This commit is contained in:
@@ -87,6 +87,7 @@ type Config struct {
|
||||
LocalAuthMode string `json:"localAuthMode"` //TODO: fix it with migration
|
||||
WakeOnLanDevices []WakeOnLanDevice `json:"wake_on_lan_devices"`
|
||||
KeyboardMacros []KeyboardMacro `json:"keyboard_macros"`
|
||||
KeyboardLayout string `json:"keyboard_layout"`
|
||||
EdidString string `json:"hdmi_edid_string"`
|
||||
ActiveExtension string `json:"active_extension"`
|
||||
DisplayRotation string `json:"display_rotation"`
|
||||
@@ -109,6 +110,7 @@ var defaultConfig = &Config{
|
||||
ActiveExtension: "",
|
||||
KeyboardMacros: []KeyboardMacro{},
|
||||
DisplayRotation: "270",
|
||||
KeyboardLayout: "en-US",
|
||||
DisplayMaxBrightness: 64,
|
||||
DisplayDimAfterSec: 120, // 2 minutes
|
||||
DisplayOffAfterSec: 1800, // 30 minutes
|
||||
|
||||
Reference in New Issue
Block a user