System and Consumer keys really ought to be explicitly pressed and released using their internal support. This fixes volume keys

pull/112/head
Jesse Vincent 8 years ago
parent 2c647f8655
commit 6c190f26f1

@ -13,9 +13,9 @@ static bool handle_synthetic_key_event(Key mappedKey, uint8_t keyState) {
if (mappedKey.flags & IS_INTERNAL) { if (mappedKey.flags & IS_INTERNAL) {
return false; return false;
} else if (mappedKey.flags & IS_CONSUMER) { } else if (mappedKey.flags & IS_CONSUMER) {
ConsumerControl.press(mappedKey.keyCode); ConsumerControl.write(mappedKey.keyCode);
} else if (mappedKey.flags & IS_SYSCTL) { } else if (mappedKey.flags & IS_SYSCTL) {
SystemControl.press(mappedKey.keyCode); SystemControl.write(mappedKey.keyCode);
} else if (mappedKey.flags & SWITCH_TO_KEYMAP) { } else if (mappedKey.flags & SWITCH_TO_KEYMAP) {
// Should not happen, handled elsewhere. // Should not happen, handled elsewhere.
} }

Loading…
Cancel
Save