diff options
-rw-r--r-- | docs/feature_space_cadet.md | 10 | ||||
-rw-r--r-- | docs/keycodes.md | 5 | ||||
-rw-r--r-- | docs/quantum_keycodes.md | 7 | ||||
-rw-r--r-- | quantum/process_keycode/process_space_cadet.c | 12 |
4 files changed, 23 insertions, 11 deletions
diff --git a/docs/feature_space_cadet.md b/docs/feature_space_cadet.md index 5c375c518..075578522 100644 --- a/docs/feature_space_cadet.md +++ b/docs/feature_space_cadet.md | |||
@@ -20,7 +20,7 @@ Firstly, in your keymap, do one of the following: | |||
20 | |`KC_RCPC` |Right Control when held, `)` when tapped | | 20 | |`KC_RCPC` |Right Control when held, `)` when tapped | |
21 | |`KC_LAPO` |Left Alt when held, `(` when tapped | | 21 | |`KC_LAPO` |Left Alt when held, `(` when tapped | |
22 | |`KC_RAPC` |Right Alt when held, `)` when tapped | | 22 | |`KC_RAPC` |Right Alt when held, `)` when tapped | |
23 | |`KC_SFTENT`|Right Shift when held, `Enter` when tapped | | 23 | |`KC_SFTENT`|Right Shift when held, Enter when tapped | |
24 | 24 | ||
25 | ## Caveats | 25 | ## Caveats |
26 | 26 | ||
@@ -38,10 +38,10 @@ By default Space Cadet assumes a US ANSI layout, but if your layout uses differe | |||
38 | |----------------|-------------------------------|---------------------------------------------------------------------------------| | 38 | |----------------|-------------------------------|---------------------------------------------------------------------------------| |
39 | |`LSPO_KEYS` |`KC_LSFT, LSPO_MOD, LSPO_KEY` |Send `KC_LSFT` when held, the mod and key defined by `LSPO_MOD` and `LSPO_KEY`. | | 39 | |`LSPO_KEYS` |`KC_LSFT, LSPO_MOD, LSPO_KEY` |Send `KC_LSFT` when held, the mod and key defined by `LSPO_MOD` and `LSPO_KEY`. | |
40 | |`RSPC_KEYS` |`KC_RSFT, RSPC_MOD, RSPC_KEY` |Send `KC_RSFT` when held, the mod and key defined by `RSPC_MOD` and `RSPC_KEY`. | | 40 | |`RSPC_KEYS` |`KC_RSFT, RSPC_MOD, RSPC_KEY` |Send `KC_RSFT` when held, the mod and key defined by `RSPC_MOD` and `RSPC_KEY`. | |
41 | |`LCPO_KEYS` |`KC_LCTL, KC_LCTL, KC_9` |Send `KC_LCTL` when held, the mod `KC_LCTL` with the key `KC_9` when tapped. | | 41 | |`LCPO_KEYS` |`KC_LCTL, KC_LSFT, KC_9` |Send `KC_LCTL` when held, the mod `KC_LSFT` with the key `KC_9` when tapped. | |
42 | |`RCPC_KEYS` |`KC_RCTL, KC_RCTL, KC_0` |Send `KC_RCTL` when held, the mod `KC_RCTL` with the key `KC_0` when tapped. | | 42 | |`RCPC_KEYS` |`KC_RCTL, KC_RSFT, KC_0` |Send `KC_RCTL` when held, the mod `KC_RSFT` with the key `KC_0` when tapped. | |
43 | |`LAPO_KEYS` |`KC_LALT, KC_LALT, KC_9` |Send `KC_LALT` when held, the mod `KC_LALT` with the key `KC_9` when tapped. | | 43 | |`LAPO_KEYS` |`KC_LALT, KC_LSFT, KC_9` |Send `KC_LALT` when held, the mod `KC_LSFT` with the key `KC_9` when tapped. | |
44 | |`RAPC_KEYS` |`KC_RALT, KC_RALT, KC_0` |Send `KC_RALT` when held, the mod `KC_RALT` with the key `KC_0` when tapped. | | 44 | |`RAPC_KEYS` |`KC_RALT, KC_RSFT, KC_0` |Send `KC_RALT` when held, the mod `KC_RSFT` with the key `KC_0` when tapped. | |
45 | |`SFTENT_KEYS` |`KC_RSFT, KC_TRNS, SFTENT_KEY` |Send `KC_RSFT` when held, no mod with the key `SFTENT_KEY` when tapped. | | 45 | |`SFTENT_KEYS` |`KC_RSFT, KC_TRNS, SFTENT_KEY` |Send `KC_RSFT` when held, no mod with the key `SFTENT_KEY` when tapped. | |
46 | 46 | ||
47 | 47 | ||
diff --git a/docs/keycodes.md b/docs/keycodes.md index c0e6aa5c6..e9cfd3425 100644 --- a/docs/keycodes.md +++ b/docs/keycodes.md | |||
@@ -216,6 +216,11 @@ This is a reference only. Each group of keys links to the page documenting their | |||
216 | |`KC_GESC` |`GRAVE_ESC`|Escape when tapped, <code>`</code> when pressed with Shift or GUI| | 216 | |`KC_GESC` |`GRAVE_ESC`|Escape when tapped, <code>`</code> when pressed with Shift or GUI| |
217 | |`KC_LSPO` | |Left Shift when held, `(` when tapped | | 217 | |`KC_LSPO` | |Left Shift when held, `(` when tapped | |
218 | |`KC_RSPC` | |Right Shift when held, `)` when tapped | | 218 | |`KC_RSPC` | |Right Shift when held, `)` when tapped | |
219 | |`KC_LCPO` | |Left Control when held, `(` when tapped | | ||
220 | |`KC_RCPC` | |Right Control when held, `)` when tapped | | ||
221 | |`KC_LAPO` | |Left Alt when held, `(` when tapped | | ||
222 | |`KC_RAPC` | |Right Alt when held, `)` when tapped | | ||
223 | |`KC_SFTENT` | |Right Shift when held, Enter when tapped | | ||
219 | |`KC_LEAD` | |The [Leader key](feature_leader_key.md) | | 224 | |`KC_LEAD` | |The [Leader key](feature_leader_key.md) | |
220 | |`KC_LOCK` | |The [Lock key](feature_key_lock.md) | | 225 | |`KC_LOCK` | |The [Lock key](feature_key_lock.md) | |
221 | |`FUNC(n)` |`F(n)` |Call `fn_action(n)` (deprecated) | | 226 | |`FUNC(n)` |`F(n)` |Call `fn_action(n)` (deprecated) | |
diff --git a/docs/quantum_keycodes.md b/docs/quantum_keycodes.md index 90192e632..a2ba34c32 100644 --- a/docs/quantum_keycodes.md +++ b/docs/quantum_keycodes.md | |||
@@ -1,6 +1,6 @@ | |||
1 | # Quantum Keycodes | 1 | # Quantum Keycodes |
2 | 2 | ||
3 | Quantum keycodes allow for easier customisation of your keymap than the basic ones provide, without having to define custom actions. | 3 | Quantum keycodes allow for easier customization of your keymap than the basic ones provide, without having to define custom actions. |
4 | 4 | ||
5 | All keycodes within quantum are numbers between `0x0000` and `0xFFFF`. Within your `keymap.c` it may look like you have functions and other special cases, but ultimately the C preprocessor will translate those into a single 4 byte integer. QMK has reserved `0x0000` through `0x00FF` for standard keycodes. These are keycodes such as `KC_A`, `KC_1`, and `KC_LCTL`, which are basic keys defined in the USB HID specification. | 5 | All keycodes within quantum are numbers between `0x0000` and `0xFFFF`. Within your `keymap.c` it may look like you have functions and other special cases, but ultimately the C preprocessor will translate those into a single 4 byte integer. QMK has reserved `0x0000` through `0x00FF` for standard keycodes. These are keycodes such as `KC_A`, `KC_1`, and `KC_LCTL`, which are basic keys defined in the USB HID specification. |
6 | 6 | ||
@@ -16,6 +16,11 @@ On this page we have documented keycodes between `0x00FF` and `0xFFFF` which are | |||
16 | |`KC_GESC` |`GRAVE_ESC`|Escape when tapped, <code>`</code> when pressed with Shift or GUI| | 16 | |`KC_GESC` |`GRAVE_ESC`|Escape when tapped, <code>`</code> when pressed with Shift or GUI| |
17 | |`KC_LSPO` | |Left Shift when held, `(` when tapped | | 17 | |`KC_LSPO` | |Left Shift when held, `(` when tapped | |
18 | |`KC_RSPC` | |Right Shift when held, `)` when tapped | | 18 | |`KC_RSPC` | |Right Shift when held, `)` when tapped | |
19 | |`KC_LCPO` | |Left Control when held, `(` when tapped | | ||
20 | |`KC_RCPC` | |Right Control when held, `)` when tapped | | ||
21 | |`KC_LAPO` | |Left Alt when held, `(` when tapped | | ||
22 | |`KC_RAPC` | |Right Alt when held, `)` when tapped | | ||
23 | |`KC_SFTENT` | |Right Shift when held, Enter when tapped | | ||
19 | |`KC_LEAD` | |The [Leader key](feature_leader_key.md) | | 24 | |`KC_LEAD` | |The [Leader key](feature_leader_key.md) | |
20 | |`KC_LOCK` | |The [Lock key](feature_key_lock.md) | | 25 | |`KC_LOCK` | |The [Lock key](feature_key_lock.md) | |
21 | |`FUNC(n)` |`F(n)` |Call `fn_action(n)` (deprecated) | | 26 | |`FUNC(n)` |`F(n)` |Call `fn_action(n)` (deprecated) | |
diff --git a/quantum/process_keycode/process_space_cadet.c b/quantum/process_keycode/process_space_cadet.c index ac39df808..089199eee 100644 --- a/quantum/process_keycode/process_space_cadet.c +++ b/quantum/process_keycode/process_space_cadet.c | |||
@@ -60,18 +60,18 @@ | |||
60 | 60 | ||
61 | // Control / paren setup | 61 | // Control / paren setup |
62 | #ifndef LCPO_KEYS | 62 | #ifndef LCPO_KEYS |
63 | #define LCPO_KEYS KC_LCTL, KC_LCTL, KC_9 | 63 | #define LCPO_KEYS KC_LCTL, KC_LSFT, KC_9 |
64 | #endif | 64 | #endif |
65 | #ifndef RCPC_KEYS | 65 | #ifndef RCPC_KEYS |
66 | #define RCPC_KEYS KC_RCTL, KC_RCTL, KC_0 | 66 | #define RCPC_KEYS KC_RCTL, KC_RSFT, KC_0 |
67 | #endif | 67 | #endif |
68 | 68 | ||
69 | // Alt / paren setup | 69 | // Alt / paren setup |
70 | #ifndef LAPO_KEYS | 70 | #ifndef LAPO_KEYS |
71 | #define LAPO_KEYS KC_LALT, KC_LALT, KC_9 | 71 | #define LAPO_KEYS KC_LALT, KC_LSFT, KC_9 |
72 | #endif | 72 | #endif |
73 | #ifndef RAPC_KEYS | 73 | #ifndef RAPC_KEYS |
74 | #define RAPC_KEYS KC_RALT, KC_RALT, KC_0 | 74 | #define RAPC_KEYS KC_RALT, KC_RSFT, KC_0 |
75 | #endif | 75 | #endif |
76 | 76 | ||
77 | // Shift / Enter setup | 77 | // Shift / Enter setup |
@@ -143,7 +143,9 @@ bool process_space_cadet(uint16_t keycode, keyrecord_t *record) { | |||
143 | return false; | 143 | return false; |
144 | } | 144 | } |
145 | default: { | 145 | default: { |
146 | sc_last = 0; | 146 | if (record->event.pressed) { |
147 | sc_last = 0; | ||
148 | } | ||
147 | break; | 149 | break; |
148 | } | 150 | } |
149 | } | 151 | } |