From 60c1aa3677e3c4ceb2595cbf678b0525a026ce7b Mon Sep 17 00:00:00 2001
From: Florian Didron <0x6664@hey.com>
Date: Tue, 12 Jul 2022 13:30:23 +0900
Subject: fix: limit pairing key candidates to [a-Z][0-9]

---
 quantum/oryx.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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();
-- 
cgit v1.2.3