Fix the MEH and HYPER aliases

We need to guard the `k` argument, place it within parens, to make sure it is
treated as a single argument, even if it expands to something that would be
ambigous. This is required, because most - if not all - keys are defined as a
list casted to `Key`, which the pre-processor would misinterpret without the
extra parens.

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
pull/527/head
Gergely Nagy 6 years ago
parent 8c2b0fdf87
commit 20786e7430
No known key found for this signature in database
GPG Key ID: AC1E90BAC433F68F

@ -63,5 +63,5 @@
#define Key_Meh LCTRL(LSHIFT(Key_LeftAlt))
#define Key_Hyper MEH(Key_LeftGui)
#define MEH(k) LCTRL(LSHIFT(LALT(k)))
#define HYPER(k) LGUI(MEH(k))
#define MEH(k) LCTRL(LSHIFT(LALT((k))))
#define HYPER(k) LGUI(MEH((k)))

Loading…
Cancel
Save