aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNunoSempere <nuno.sempere@protonmail.com>2023-12-29 18:38:29 +0100
committerNunoSempere <nuno.sempere@protonmail.com>2023-12-29 18:38:29 +0100
commitc34418005538a3ee5bda5854e1e27e2d463e5b33 (patch)
tree4a6482e84fbaca3abbd48dad6dadde7414c220c2
parent6ed0181a0c7520cf818661ab10c537f43489cae2 (diff)
reorder argument order
-rw-r--r--rose.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rose.c b/rose.c
index 2258b60..c54ddcb 100644
--- a/rose.c
+++ b/rose.c
@@ -412,7 +412,7 @@ int keypress(void* self, GdkEvent* e, GtkNotebook* notebook)
(void)self;
for (int i = 0; i < sizeof(keys) / sizeof(keys[0]); i++)
- if (e->key.keyval == keys[i].key && (e->key.state == keys[i].mod || keys[i].mod == 0x0))
+ if ((e->key.state == keys[i].mod || keys[i].mod == 0x0) && e->key.keyval == keys[i].key )
return handle_key(keys[i].id, notebook);
return 0;