Skip to content

Commit 95c1cc4

Browse files
authored
Rename postprocess_steno_user → post_process_steno_user (#17823)
1 parent 2d0443e commit 95c1cc4

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

docs/feature_stenography.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ bool process_steno_user(uint16_t keycode, keyrecord_t *record) { return true; }
133133
This function is called when a keypress has come in, before it is processed. The keycode should be one of `QK_STENO_BOLT`, `QK_STENO_GEMINI`, or one of the `STN_*` key values.
134134

135135
```c
136-
bool postprocess_steno_user(uint16_t keycode, keyrecord_t *record, steno_mode_t mode, uint8_t chord[MAX_STROKE_SIZE], int8_t n_pressed_keys);
136+
bool post_process_steno_user(uint16_t keycode, keyrecord_t *record, steno_mode_t mode, uint8_t chord[MAX_STROKE_SIZE], int8_t n_pressed_keys);
137137
```
138138
139139
This function is called after a key has been processed, but before any decision about whether or not to send a chord. This is where to put hooks for things like, say, live displays of steno chords or keys.

docs/ja/feature_stenography.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ bool process_steno_user(uint16_t keycode, keyrecord_t *record) { return true; }
7777
この関数はキーが押されるとキーが処理される前に呼び出されます。キーコードは `QK_STENO_BOLT``QK_STENO_GEMINI` あるいは `STN_*` キー値のいずれかでなければなりません。
7878

7979
```c
80-
bool postprocess_steno_user(uint16_t keycode, keyrecord_t *record, steno_mode_t mode, uint8_t chord[6], int8_t pressed);
80+
bool post_process_steno_user(uint16_t keycode, keyrecord_t *record, steno_mode_t mode, uint8_t chord[6], int8_t pressed);
8181
```
8282
8383
この関数はキーが処理された後、ただしコードを送信するかどうかを決める前に呼び出されます。`IS_PRESSED(record->event)` が false で、`pressed` が 0 または 1 の場合は、コードはまもなく送信されますが、まだ送信されてはいません。ここが速記コードあるいはキーのライブ表示などのフックを配置する場所です。

quantum/process_keycode/process_steno.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ __attribute__((weak)) bool send_steno_chord_user(steno_mode_t mode, uint8_t chor
148148
return true;
149149
}
150150

151-
__attribute__((weak)) bool postprocess_steno_user(uint16_t keycode, keyrecord_t *record, steno_mode_t mode, uint8_t chord[MAX_STROKE_SIZE], int8_t n_pressed_keys) {
151+
__attribute__((weak)) bool post_process_steno_user(uint16_t keycode, keyrecord_t *record, steno_mode_t mode, uint8_t chord[MAX_STROKE_SIZE], int8_t n_pressed_keys) {
152152
return true;
153153
}
154154

@@ -209,12 +209,12 @@ bool process_steno(uint16_t keycode, keyrecord_t *record) {
209209
default:
210210
return false;
211211
}
212-
if (!postprocess_steno_user(keycode, record, mode, chord, n_pressed_keys)) {
212+
if (!post_process_steno_user(keycode, record, mode, chord, n_pressed_keys)) {
213213
return false;
214214
}
215215
} else { // is released
216216
n_pressed_keys--;
217-
if (!postprocess_steno_user(keycode, record, mode, chord, n_pressed_keys)) {
217+
if (!post_process_steno_user(keycode, record, mode, chord, n_pressed_keys)) {
218218
return false;
219219
}
220220
if (n_pressed_keys > 0) {

0 commit comments

Comments
 (0)