Skip to content

Commit f6f8cc5

Browse files
committed
Stop ordinary keys from committing first candidate
in response to testing feedback "選字欄因為太近啲數目字,有時選字會同時按到啲數目字". Now only space bar, enter, and the candidate buttons themselves will result in committing of a candidate.
1 parent 4287ea5 commit f6f8cc5

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33

44
## [Unreleased]
55

6+
- Stopped ordinary keys (digits and punctuation) committing first candidate.
7+
Now only space bar, enter, and the candidate buttons themselves
8+
will commit a candidate
69
- Increased candidates bar height by 5%
710
- Increased gutter height under candidates bar from 1px to 4dp
811
- Made candidate button text/background colours swap on press

app/src/main/java/io/github/yawnoc/strokeinput/StrokeInputService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ private void effectOrdinaryKey(final InputConnection inputConnection, final Stri
638638
{
639639
if (strokeDigitSequence.length() > 0)
640640
{
641-
onCandidate(getFirstCandidate());
641+
return;
642642
}
643643
inputConnection.commitText(valueText, 1);
644644
}

0 commit comments

Comments
 (0)