-
-
Notifications
You must be signed in to change notification settings - Fork 120
refactor(web): move RuleBehavior
to engine/keyboard
🎼
#13997
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
User Test ResultsTest specification and instructions User tests are not required Test Artifacts
|
RuleBehavior
to engine/keyboard
RuleBehavior
to engine/keyboard
🎼
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, nits only
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs to move to another PR?
export type Alternate = LexicalModelTypes.ProbabilityMass<LexicalModelTypes.Transform>; | ||
|
||
export class TextTransform implements LexicalModelTypes.Transform { | ||
readonly insert: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tab size?
/* | ||
* Keyman is copyright (C) SIL Global. MIT License. | ||
* | ||
* Defines deadkey management in a manner attachable to each element interface. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment is wrong?
|
||
private static tokenSeed: number = 0; | ||
|
||
constructor(keystroke: KeyEvent, transform: TextTransform, preInput: OutputTargetInterface, alternates?: Alternate[] /*, removedDks: Deadkey[], insertedDks: Deadkey[]*/) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove commented code please
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need consistency in filename ending with systemStores.ts.
d895a33
to
dca5edb
Compare
This requires to move some other files around. Also move `finalize` and `mergeInDefaults` methods to processor and rename them to `finalizeProcessorAction` and `mergeInOtherProcessorAction` (decided 8000 to directly use the term `ProcessorAction`, to which `RuleBehavior` will be renamed to in a following PR). Co-authored-by: Marc Durdin <marc@durdin.net>
3018692
to
657585e
Compare
dca5edb
to
1b14f5c
Compare
This requires to move some other files around. Also move
finalize
andmergeInDefaults
methods to processor.Test-bot: skip