mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-18 23:20:54 +00:00
make reverting autocorrect on backspace optional
fixes GH-210
This commit is contained in:
parent
c0b14635fd
commit
f5bc89b91d
7 changed files with 21 additions and 4 deletions
|
@ -1198,7 +1198,7 @@ public final class InputLogic {
|
|||
}
|
||||
inputTransaction.setRequiresUpdateSuggestions();
|
||||
} else {
|
||||
if (mLastComposedWord.canRevertCommit()) {
|
||||
if (mLastComposedWord.canRevertCommit() && inputTransaction.getMSettingsValues().mBackspaceRevertsAutocorrect) {
|
||||
final String lastComposedWord = mLastComposedWord.mTypedWord;
|
||||
revertCommit(inputTransaction);
|
||||
StatsUtils.onRevertAutoCorrect();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue