Make keycodes human readable

This commit is contained in:
Werner Sembach 2023-05-30 17:35:25 +02:00
parent c51c01e3f2
commit 46b9753437

View file

@ -237,13 +237,12 @@ static int keyboard_notifier_callb(struct notifier_block *nb, unsigned long code
int ret = NOTIFY_OK; int ret = NOTIFY_OK;
if (!param->down) { if (!param->down) {
if (code == KBD_KEYCODE) { if (code == KBD_KEYCODE) {
switch (param->value) { switch (param->value) {
case 125: case KEY_LEFTMETA:
// If the last keys up were 85 -> 29 -> 125 // If the last keys up were 85 -> 29 -> 125
// manually report KEY_F21 // manually report KEY_F21
if (prevprev_key == 85 && prev_key == 29) { if (prevprev_key == KEY_ZENKAKUHANKAKU && prev_key == KEY_LEFTCTRL) {
TUXEDO_DEBUG("Touchpad Toggle\n"); TUXEDO_DEBUG("Touchpad Toggle\n");
schedule_work(&uniwill_key_event_work); schedule_work(&uniwill_key_event_work);
ret = NOTIFY_OK; ret = NOTIFY_OK;