abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2/Autocapitalisation.java
AgeCommit message (Collapse)AuthorFilesLines
2024-09-10Update autocapitalisation on EnterJules Aguillon1-0/+3
2024-01-13Refactor: New namespace for preference classesJules Aguillon1-1/+1
2023-09-09Update auto-capitalisation state when input startsJules Aguillon1-3/+37
The initial capitalisation state given by the editor (`info.initialCapsMode`) is always 0 in many editors. For some text input types, update the state when typing starts, disregarding the value given by `info.initialCapsMode`.
2023-08-26Disable automatically Shift when pressing CtrlJules Aguillon1-0/+7
Automatic capitalisation might interferes with keyboard shortcuts.
2022-11-13Refactor: Move editing code from to KeyEventHandlerJules Aguillon1-6/+0
Remove the code dealing with InputMethodConnection from 'Keyboard2' and move it into 'KeyEventHandler', where more editing actions can now be implemented. Autocapitalisation is also moved, the IReceiver interface is simplified.
2022-10-16Autocapitalisation: Avoid trigerring when Ctrl+DelJules Aguillon1-1/+7
Autocapitalisation could trigger while repeatedly typing Ctrl+Del to remove several words.
2022-10-15Fix crash due to auto capitalisationJules Aguillon1-36/+40
It is unclear how _autocap.started is not called first but nothing is preventing to initialize things earlier.
2022-09-24Improve the auto capitalisationJules Aguillon1-0/+7
- Detect when the input box is cleared - Avoid looking up keys on the keyboard every time the shift state needs to change.
2022-09-24Fix autocapitalisation randomly not triggeredJules Aguillon1-24/+60
The autocapitalisation is asking the editor about whether to enable shift and must make sure to ask after the editor is done processing the events.
2022-07-30Standard auto-capitalisation only after spaceJules Aguillon1-85/+31
Change the capitalisation algorithm to use Android's 'getCursorCapsMode'. This requires a bit of cursor calculations but should feel more standard. The auto completion only triggers after a space is typed or backspace is pressed.
2022-07-24Add an option to control auto capitalisationJules Aguillon1-1/+2
2022-07-24Avoid automatic capitalisation when using arrowsJules Aguillon1-6/+35
Disable capitalisation just after an arrow kind is pressed to avoid interrupting navigation.
2022-07-24Automatic capitalisation at beginning of sentencesJules Aguillon1-0/+119
Keep track of end-of-sentence characters while typing and automatically enable shift when appropriate. The last few characters just before the cursor need to be queried in some cases: Begin of input, cursor has moved or text is deleted. This might have a performance cost. This normally only enable shift but it also needs to disable shift when the cursor moves.