From 09ab67c0440d8e5e3faf832d23eb1b754845a573 Mon Sep 17 00:00:00 2001
From: François Magimel
Date: Tue, 9 Sep 2025 23:51:13 +0200
Subject: docs: fix misspellings (#25555)
* docs: fix misspellings
* docs: do line breaks with HTML instead of spaces
To remove trailing spaces and to avoid breaking things, line breaks can
be done with the HTML br tag.---
docs/features/repeat_key.md | 34 +++++++++++++++++-----------------
1 file changed, 17 insertions(+), 17 deletions(-)
(limited to 'docs/features/repeat_key.md')
diff --git a/docs/features/repeat_key.md b/docs/features/repeat_key.md
index 7f2bdc44e6..543dfd1008 100644
--- a/docs/features/repeat_key.md
+++ b/docs/features/repeat_key.md
@@ -5,7 +5,7 @@ Key after tapping the Z key types another "`z`." This is useful for
typing doubled letters, like the `z` in "`dazzle`": a double tap on Z
can instead be a roll from Z to Repeat, which is
potentially faster and more comfortable. The Repeat Key is also useful for
-hotkeys, like repeating Ctrl + Shift + Right Arrow to select by word.
+hotkeys, like repeating Ctrl + Shift + Right Arrow to select by word.
Repeat Key remembers mods that were active with the last key press. These mods
are combined with any additional mods while pressing the Repeat Key. If the last
@@ -49,10 +49,10 @@ reduce firmware size, Alternate Repeat may be disabled by adding in config.h:
The following alternate keys are defined by default. See
`get_alt_repeat_key_keycode_user()` below for how to change or add to these
-definitions. Where it makes sense, these definitions also include combinations
+definitions. Where it makes sense, these definitions also include combinations
with mods, like Ctrl + Left ↔ Ctrl + Right Arrow.
-**Navigation**
+**Navigation**
|Keycodes |Description |
|-----------------------------------|-----------------------------------|
@@ -65,7 +65,7 @@ with mods, like Ctrl + Left ↔ Ctrl + Right Arrow.
|`MS_WHLL` ↔ `MS_WHLR` | Mouse Wheel Left ↔ Right |
|`MS_WHLU` ↔ `MS_WHLD` | Mouse Wheel Up ↔ Down |
-**Misc**
+**Misc**
|Keycodes |Description |
|-----------------------------------|-----------------------------------|
@@ -73,7 +73,7 @@ with mods, like Ctrl + Left ↔ Ctrl + Right Arrow.
|`KC_LBRC` ↔ `KC_RBRC` | `[` ↔ `]` |
|`KC_LCBR` ↔ `KC_RCBR` | `{` ↔ `}` |
-**Media**
+**Media**
|Keycodes |Description |
|-----------------------------------|-----------------------------------|
@@ -176,9 +176,9 @@ macro](../feature_macros). This way macros can be used without having to
dedicate keys to them. The following defines a couple shortcuts.
* Typing K, Alt Repeat produces "`keyboard`," with the
- initial "`k`" typed as usual and the "`eybord`" produced by the macro.
+ initial "`k`" typed as usual and the "`eybord`" produced by the macro.
* Typing ., Alt Repeat produces "`../`," handy for "up
- directory" on the shell. Similary, . types the initial "`.`" and
+ directory" on the shell. Similarly, . types the initial "`.`" and
"`./`" is produced by the macro.
```c
@@ -290,7 +290,7 @@ By default, pressing the Repeat Key will simply behave as if the last key
were pressed again. This also works with macro keys with custom handlers,
invoking the macro again. In case fine-tuning is needed for sensible repetition,
you can handle how a key is repeated with `get_repeat_key_count()` within
-`process_record_user()`.
+`process_record_user()`.
The `get_repeat_key_count()` function returns a signed count of times the key
has been repeated or alternate repeated. When a key is pressed as usual,
@@ -306,16 +306,16 @@ bool process_record_user(uint16_t keycode, keyrecord_t* record) {
if (get_repeat_key_count() > 0) {
// MY_MACRO is being repeated!
if (record->event.pressed) {
- SEND_STRING("repeat!");
+ SEND_STRING("repeat!");
}
- } else {
+ } else {
// MY_MACRO is being used normally.
- if (record->event.pressed) {
+ if (record->event.pressed) {
SEND_STRING("macro");
}
}
return false;
-
+
// Other macros...
}
return true;
@@ -347,19 +347,19 @@ bool process_record_user(uint16_t keycode, keyrecord_t* record) {
case MY_MACRO:
if (get_repeat_key_count() > 0) { // Repeating.
if (record->event.pressed) {
- SEND_STRING("repeat!");
+ SEND_STRING("repeat!");
}
} else if (get_repeat_key_count() < 0) { // Alternate repeating.
if (record->event.pressed) {
SEND_STRING("alt repeat!");
}
} else { // Used normally.
- if (record->event.pressed) {
+ if (record->event.pressed) {
SEND_STRING("macro");
}
}
return false;
-
+
// Other macros...
}
return true;
@@ -377,7 +377,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t* record) {
| `set_last_mods(mods)` | Set the mods to apply when repeating. |
| `get_repeat_key_count()` | Signed count of times the key has been repeated or alternate repeated. |
| `get_alt_repeat_key_keycode()` | Keycode to be used for alternate repeating. |
-
+
## Additional "Alternate" keys
@@ -437,7 +437,7 @@ static void process_altrep3(uint16_t keycode, uint8_t mods) {
bool process_record_user(uint16_t keycode, keyrecord_t* record) {
switch (keycode) {
- case ALTREP2:
+ case ALTREP2:
if (record->event.pressed) {
process_altrep2(get_last_keycode(), get_last_mods());
}
--
cgit v1.2.3