Add "Call Mute" combo key for darp9

The proprietary firmware for the darp9 adds the mic mute hotkey using
the new "Call Mute" hotkey from Windows 11 22H2, which is mapped to
`Super+Alt+K` [1]. Match the behavior in open firmware.

[1]: https://support.microsoft.com/en-us/windows/keyboard-shortcuts-in-windows-dcc61a57-8ff0-cffe-9796-cb9706c75eec#WindowsVersion=Windows_11

Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
Tim Crawford
2023-06-02 09:21:11 -06:00
committed by Jeremy Soller
parent 399415fdf6
commit 2dd33ffec5
3 changed files with 20 additions and 3 deletions

View File

@ -255,6 +255,18 @@ bool kbscan_press(uint16_t key, bool pressed, uint8_t *layer) {
}
}
break;
case COMBO_CALL_MUTE:
if (kbscan_enabled) {
if (pressed) {
kbc_scancode(K_LEFT_SUPER, true);
kbc_scancode(K_LEFT_ALT, true);
kbc_scancode(K_K, true);
kbc_scancode(K_LEFT_SUPER, false);
kbc_scancode(K_LEFT_ALT, false);
kbc_scancode(K_K, false);
}
}
break;
}
break;
case (KT_SCI):