Add Pause key
In proprietary firmware and QMK, the Break key by itself is always just Pause. They produce the same scan code, but Ctrl must be held for the OS to recognize it as Break. Behavior tested with xev. Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
committed by
Jeremy Soller
parent
375d11f4ed
commit
158ec124fe
@ -239,6 +239,18 @@ bool kbscan_press(uint16_t key, bool pressed, uint8_t * layer) {
|
||||
}
|
||||
}
|
||||
break;
|
||||
case COMBO_PAUSE:
|
||||
if (kbscan_enabled) {
|
||||
if (pressed) {
|
||||
kbc_scancode(0xE1, true);
|
||||
kbc_scancode(0x14, true);
|
||||
kbc_scancode(0x77, true);
|
||||
kbc_scancode(0xE1, true);
|
||||
kbc_scancode(0x14, false);
|
||||
kbc_scancode(0x77, false);
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case (KT_SCI):
|
||||
@ -287,6 +299,7 @@ static inline bool key_should_repeat(uint16_t key) {
|
||||
case K_KBD_BKL:
|
||||
case K_KBD_COLOR:
|
||||
case K_KBD_TOGGLE:
|
||||
case K_PAUSE:
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user