diff options
author | Florian Didron <0x6664@hey.com> | 2022-07-12 13:30:23 +0900 |
---|---|---|
committer | Florian Didron <0x6664@hey.com> | 2022-07-12 13:30:23 +0900 |
commit | 60c1aa3677e3c4ceb2595cbf678b0525a026ce7b (patch) | |
tree | b2569fc60b9058ffd9b4256781b4f7222048b624 | |
parent | c30d2d46488d1c2b3f48dec1610f753caa6e4a08 (diff) |
fix: limit pairing key candidates to [a-Z][0-9]
-rw-r--r-- | quantum/oryx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/quantum/oryx.c b/quantum/oryx.c index f457739375..a408cff3ce 100644 --- a/quantum/oryx.c +++ b/quantum/oryx.c @@ -144,7 +144,8 @@ keypos_t get_random_keypos(void) { uint8_t row = rand() % MATRIX_ROWS; keypos_t pos = {.col = col, .row = row}; - if (keymap_key_to_keycode(0, pos) != KC_NO) { + uint16_t keycode = keymap_key_to_keycode(0, pos); + if (keycode >= KC_A && keycode <= KC_SLASH) { return pos; } else { return get_random_keypos(); |