mirror of
https://github.com/qmk/qmk_firmware
synced 2025-01-03 13:40:36 +00:00
Document Autocorrect callback functions (#20115)
This commit is contained in:
@ -236,6 +236,18 @@ bool apply_autocorrect(uint8_t backspaces, const char *str) {
|
||||
}
|
||||
```
|
||||
|
||||
### Autocorrect Status
|
||||
|
||||
Additional user callback functions to manipulate Autocorrect:
|
||||
|
||||
| Function | Description |
|
||||
|----------------------------|----------------------------------------------|
|
||||
| `autocorrect_enable()` | Turns Autocorrect on. |
|
||||
| `autocorrect_disable()` | Turns Autocorrect off. |
|
||||
| `autocorrect_toggle()` | Toggles Autocorrect. |
|
||||
| `autocorrect_is_enabled()` | Returns true if Autocorrect is currently on. |
|
||||
|
||||
|
||||
## Appendix: Trie binary data format :id=appendix
|
||||
|
||||
This section details how the trie is serialized to byte data in autocorrect_data. You don’t need to care about this to use this autocorrection implementation. But it is documented for the record in case anyone is interested in modifying the implementation, or just curious how it works.
|
||||
|
Reference in New Issue
Block a user