mirror of
https://github.com/FunKey-Project/fkgpiod.git
synced 2025-12-12 07:58:50 +01:00
release key when unmapping
Signed-off-by: Michel-FK <michel.stempin@funkey-project.com>
This commit is contained in:
parent
e74f6883cc
commit
8d635370a0
@ -31,6 +31,7 @@
|
||||
#include <syslog.h>
|
||||
#include "mapping_list.h"
|
||||
#include "parse_config.h"
|
||||
#include "uinput.h"
|
||||
|
||||
//#define DEBUG_MAPPING_LIST
|
||||
#define ERROR_MAPPING_LIST
|
||||
@ -133,7 +134,9 @@ void clear_mapping_list(mapping_list_t *list)
|
||||
if (tmp->value.command != NULL) {
|
||||
free(tmp->value.command);
|
||||
}
|
||||
}
|
||||
} else if (tmp->activated == true) {
|
||||
sendKey(tmp->value.keycode, 0);
|
||||
}
|
||||
free(tmp);
|
||||
}
|
||||
}
|
||||
@ -233,6 +236,9 @@ bool remove_mapping(mapping_list_t *list, mapping_t *mapping)
|
||||
break;
|
||||
|
||||
case MAPPING_KEY:
|
||||
if (tmp->activated == true) {
|
||||
sendKey(tmp->value.keycode, 0);
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user