summaryrefslogtreecommitdiff
path: root/kvmd/apps/__init__.py
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2024-11-02 14:26:39 +0200
committerMaxim Devaev <[email protected]>2024-11-02 14:26:39 +0200
commitd6b61cb407a729169af6d678de667dae842a86f5 (patch)
treeffd4185ae16a96795aecbb292fe0e36b2d4d3df1 /kvmd/apps/__init__.py
parent8192b1fa95e263d41d1f9be4909dc58517b8da37 (diff)
refactoring
Diffstat (limited to 'kvmd/apps/__init__.py')
-rw-r--r--kvmd/apps/__init__.py16
1 files changed, 1 insertions, 15 deletions
diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py
index dd1b8ff9..9d6d494a 100644
--- a/kvmd/apps/__init__.py
+++ b/kvmd/apps/__init__.py
@@ -33,8 +33,6 @@ import pygments.formatters
from .. import tools
-from ..mouse import MouseRange
-
from ..plugins import UnknownPluginError
from ..plugins.auth import get_auth_service_class
from ..plugins.hid import get_hid_class
@@ -407,19 +405,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_file),
- "ignore_keys": Option([], type=functools.partial(valid_string_list, subval=valid_hid_key)),
-
- "mouse_x_range": {
- "min": Option(MouseRange.MIN, type=valid_hid_mouse_move),
- "max": Option(MouseRange.MAX, type=valid_hid_mouse_move),
- },
- "mouse_y_range": {
- "min": Option(MouseRange.MIN, type=valid_hid_mouse_move),
- "max": Option(MouseRange.MAX, type=valid_hid_mouse_move),
- },
-
+ "keymap": Option("/usr/share/kvmd/keymaps/en-us", type=valid_abs_file),
# Dynamic content
},