mirror of
https://github.com/alols/xcape.git
synced 2026-09-10 10:26:16 -04:00
Allow doing mappings with non-modifier keys
This commit is contained in:
parent
664a292d41
commit
2c99bcc4d7
4
xcape.c
4
xcape.c
|
|
@ -261,7 +261,7 @@ void handle_key (XCape_t *self, KeyMap_t *key,
|
|||
{
|
||||
Key_t *k;
|
||||
|
||||
if (key_event == KeyPress)
|
||||
if (key_event == KeyPress && !key->pressed)
|
||||
{
|
||||
if (self->debug) fprintf (stdout, "Key pressed!\n");
|
||||
|
||||
|
|
@ -275,7 +275,7 @@ void handle_key (XCape_t *self, KeyMap_t *key,
|
|||
key->used = True;
|
||||
}
|
||||
}
|
||||
else
|
||||
else if (key_event == KeyRelease)
|
||||
{
|
||||
if (self->debug) fprintf (stdout, "Key released!\n");
|
||||
if (key->used == False)
|
||||
|
|
|
|||
Loading…
Reference in a new issue