using evdev instead of string constants

This commit is contained in:
Maxim Devaev
2025-05-01 03:03:25 +03:00
parent 1624b0cbf8
commit ebbd55ee17
29 changed files with 692 additions and 539 deletions

View File

@@ -24,7 +24,7 @@ from typing import Any
import pytest
from kvmd.keyboard.mappings import KEYMAP
from kvmd.keyboard.mappings import WEB_TO_EVDEV
from kvmd.validators import ValidatorError
from kvmd.validators.hid import valid_hid_key
@@ -35,7 +35,7 @@ from kvmd.validators.hid import valid_hid_mouse_delta
# =====
def test_ok__valid_hid_key() -> None:
for key in KEYMAP:
for key in WEB_TO_EVDEV:
print(valid_hid_key(key))
print(valid_hid_key(key + " "))