diff options
| author | Drashna Jaelre <drashna@live.com> | 2022-09-17 00:50:54 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-17 17:50:54 +1000 |
| commit | fb29c0ae53e32fb049516fcbe0f7863882ca9173 (patch) | |
| tree | 989feaa47190248726a462bf761a98f46d91f406 /quantum/process_keycode/process_autocorrect.h | |
| parent | d67d388e776eeb8596181894639b6ed46c8a2d7d (diff) | |
[Core] Add getreuer's Autocorrect feature to core (#15699)
Co-authored-by: Albert Y <76888457+filterpaper@users.noreply.github.com>
Diffstat (limited to 'quantum/process_keycode/process_autocorrect.h')
| -rw-r--r-- | quantum/process_keycode/process_autocorrect.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/quantum/process_keycode/process_autocorrect.h b/quantum/process_keycode/process_autocorrect.h new file mode 100644 index 0000000000..c7596107e5 --- /dev/null +++ b/quantum/process_keycode/process_autocorrect.h | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | // Copyright 2021 Google LLC | ||
| 2 | // Copyright 2021 @filterpaper | ||
| 3 | // SPDX-License-Identifier: Apache-2.0 | ||
| 4 | // Original source: https://getreuer.info/posts/keyboards/autocorrection | ||
| 5 | |||
| 6 | #pragma once | ||
| 7 | |||
| 8 | #include "quantum.h" | ||
| 9 | |||
| 10 | bool process_autocorrect(uint16_t keycode, keyrecord_t *record); | ||
| 11 | bool process_autocorrect_user(uint16_t *keycode, keyrecord_t *record, uint8_t *typo_buffer_size, uint8_t *mods); | ||
| 12 | bool apply_autocorrect(uint8_t backspaces, const char *str); | ||
| 13 | |||
| 14 | bool autocorrect_is_enabled(void); | ||
| 15 | void autocorrect_enable(void); | ||
| 16 | void autocorrect_disable(void); | ||
| 17 | void autocorrect_toggle(void); | ||
