mirror of
https://github.com/alols/xcape.git
synced 2026-09-10 09:36:15 -04:00
do not use alt-bs
This commit is contained in:
parent
6dbbd4c334
commit
067c8c0a2a
3
xcape.c
3
xcape.c
|
|
@ -283,7 +283,8 @@ void handle_key(XCape_t *self, KeyMap_t *key, Bool mouse_pressed,
|
|||
char buf[32], *keys = buf;
|
||||
XQueryKeymap(self->ctrl_conn, keys);
|
||||
|
||||
if ((BIT(keys, 64) || BIT(keys, 50) || BIT(keys, 62)) && key->from_kc == 100)
|
||||
// lshift and rshift
|
||||
if ((BIT(keys, 50) || BIT(keys, 62)) && key->from_kc == 100)
|
||||
{
|
||||
XTestFakeKeyEvent(self->ctrl_conn, 22, True, 0);
|
||||
/* XTestFakeKeyEvent(self->ctrl_conn, 22, False, 0); */
|
||||
|
|
|
|||
Loading…
Reference in a new issue