mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 09:10:30 +08:00
fixed keymap validation
This commit is contained in:
parent
cf2f763d1b
commit
ec3890e0e6
@ -229,7 +229,7 @@ def _get_config_scheme() -> Dict:
|
||||
|
||||
"hid": {
|
||||
"type": Option("", type=valid_stripped_string_not_empty),
|
||||
"keymap": Option("/usr/share/kvmd/keymaps/en-us", type=valid_abs_path),
|
||||
"keymap": Option("/usr/share/kvmd/keymaps/en-us", type=valid_abs_file),
|
||||
# Dynamic content
|
||||
},
|
||||
|
||||
@ -340,7 +340,7 @@ def _get_config_scheme() -> Dict:
|
||||
|
||||
"vnc": {
|
||||
"desired_fps": Option(30, type=valid_stream_fps),
|
||||
"keymap": Option("/usr/share/kvmd/keymaps/en-us", type=valid_abs_path),
|
||||
"keymap": Option("/usr/share/kvmd/keymaps/en-us", type=valid_abs_file),
|
||||
|
||||
"server": {
|
||||
"host": Option("::", type=valid_ip_or_host),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user