mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-06 08:55:34 +00:00
Update worker-communication-protocol.md
This commit is contained in:
parent
aec96341e9
commit
ea83a0749f
1 changed files with 5 additions and 4 deletions
|
|
@ -283,11 +283,11 @@ _undoing_ the `transform` it has already applied should it apply a
|
|||
as if it has never applied the `transform` associated with the input
|
||||
event in the first place.
|
||||
|
||||
#### Context
|
||||
|
||||
The context is the text surrounding the insertion point, _before_ the
|
||||
transform is applied to the buffer.
|
||||
|
||||
#### Context
|
||||
|
||||
```typescript
|
||||
interface Context {
|
||||
/**
|
||||
|
|
@ -350,6 +350,7 @@ interface Transform {
|
|||
}
|
||||
```
|
||||
|
||||
[Transform]: #transform
|
||||
|
||||
### Message: `suggestions`
|
||||
|
||||
|
|
@ -398,7 +399,7 @@ let suggestions = [
|
|||
|
||||
#### Timing
|
||||
|
||||
Each suggestion provides a `transform`. This transform is applied
|
||||
Each suggestion provides a `transform`. This [transform][Transform] is applied
|
||||
_after_ the transform associated with the input event that initiated
|
||||
this prediction. That is, the suggested transform applies to the buffer
|
||||
after the transform associated with the input event.
|
||||
|
|
@ -485,7 +486,7 @@ would result in the following reply message:
|
|||
}
|
||||
```
|
||||
|
||||
Alternatively,
|
||||
Alternatively, if the insertion point is after the space...
|
||||
|
||||
```javascript
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue