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:
Tim Crawford
2021-11-15 15:19:14 -07:00
committed by Jeremy Soller
parent 375d11f4ed
commit 158ec124fe
5 changed files with 20 additions and 5 deletions

View File

@@ -54,6 +54,8 @@ uint16_t keymap_translate(uint16_t key);
#define K_DISPLAY_MODE (KT_COMBO | COMBO_DISPLAY_MODE)
#define COMBO_PRINT_SCREEN 1
#define K_PRINT_SCREEN (KT_COMBO | COMBO_PRINT_SCREEN)
#define COMBO_PAUSE 2
#define K_PAUSE (KT_COMBO | COMBO_PAUSE)
// SCI
#define KT_SCI (0x4000)
@@ -167,7 +169,7 @@ uint16_t keymap_translate(uint16_t key);
// Escape key
#define K_ESC (0x76)
//TODO: Pause/break, sys request
//TODO: sys request
// Scroll lock
#define K_SCROLL_LOCK (0x7E)