aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/quantum_keycodes.md25
-rw-r--r--quantum/quantum.c5
-rw-r--r--quantum/quantum_keycodes.h4
3 files changed, 22 insertions, 12 deletions
diff --git a/docs/quantum_keycodes.md b/docs/quantum_keycodes.md
index 1d7fc0e12..90192e632 100644
--- a/docs/quantum_keycodes.md
+++ b/docs/quantum_keycodes.md
@@ -8,15 +8,16 @@ On this page we have documented keycodes between `0x00FF` and `0xFFFF` which are
8 8
9## QMK Keycodes 9## QMK Keycodes
10 10
11|Key |Aliases |Description | 11|Key |Aliases |Description |
12|-------------|-----------|---------------------------------------------------------------------| 12|---------------|-----------|---------------------------------------------------------------------|
13|`RESET` | |Put the keyboard into DFU mode for flashing | 13|`RESET` | |Put the keyboard into DFU mode for flashing |
14|`DEBUG` | |Toggle debug mode | 14|`DEBUG` | |Toggle debug mode |
15|`KC_GESC` |`GRAVE_ESC`|Escape when tapped, <code>&#96;</code> when pressed with Shift or GUI| 15|`EEPROM_RESET` |`EEP_RST` |Resets EEPROM state by reinitializing it |
16|`KC_LSPO` | |Left Shift when held, `(` when tapped | 16|`KC_GESC` |`GRAVE_ESC`|Escape when tapped, <code>&#96;</code> when pressed with Shift or GUI|
17|`KC_RSPC` | |Right Shift when held, `)` when tapped | 17|`KC_LSPO` | |Left Shift when held, `(` when tapped |
18|`KC_LEAD` | |The [Leader key](feature_leader_key.md) | 18|`KC_RSPC` | |Right Shift when held, `)` when tapped |
19|`KC_LOCK` | |The [Lock key](feature_key_lock.md) | 19|`KC_LEAD` | |The [Leader key](feature_leader_key.md) |
20|`FUNC(n)` |`F(n)` |Call `fn_action(n)` (deprecated) | 20|`KC_LOCK` | |The [Lock key](feature_key_lock.md) |
21|`M(n)` | |Call macro `n` | 21|`FUNC(n)` |`F(n)` |Call `fn_action(n)` (deprecated) |
22|`MACROTAP(n)`| |Macro-tap `n` idk FIXME | 22|`M(n)` | |Call macro `n` |
23|`MACROTAP(n)` | |Macro-tap `n` idk FIXME |
diff --git a/quantum/quantum.c b/quantum/quantum.c
index 5f1a691c8..69692233e 100644
--- a/quantum/quantum.c
+++ b/quantum/quantum.c
@@ -298,6 +298,11 @@ bool process_record_quantum(keyrecord_t *record) {
298 print("DEBUG: enabled.\n"); 298 print("DEBUG: enabled.\n");
299 } 299 }
300 return false; 300 return false;
301 case EEPROM_RESET:
302 if (record->event.pressed) {
303 eeconfig_init();
304 }
305 return false;
301 #ifdef FAUXCLICKY_ENABLE 306 #ifdef FAUXCLICKY_ENABLE
302 case FC_TOG: 307 case FC_TOG:
303 if (record->event.pressed) { 308 if (record->event.pressed) {
diff --git a/quantum/quantum_keycodes.h b/quantum/quantum_keycodes.h
index 53fece21c..14f8c2b81 100644
--- a/quantum/quantum_keycodes.h
+++ b/quantum/quantum_keycodes.h
@@ -454,6 +454,8 @@ enum quantum_keycodes {
454 TERM_OFF, 454 TERM_OFF,
455#endif 455#endif
456 456
457 EEPROM_RESET,
458
457 // always leave at the end 459 // always leave at the end
458 SAFE_RANGE 460 SAFE_RANGE
459}; 461};
@@ -569,6 +571,8 @@ enum quantum_keycodes {
569 571
570#define KC_GESC GRAVE_ESC 572#define KC_GESC GRAVE_ESC
571 573
574#define EEP_RST EEPROM_RESET
575
572#define CK_TOGG CLICKY_TOGGLE 576#define CK_TOGG CLICKY_TOGGLE
573#define CK_RST CLICKY_RESET 577#define CK_RST CLICKY_RESET
574#define CK_UP CLICKY_UP 578#define CK_UP CLICKY_UP