Skip to content

Commit 8fb150c

Browse files
committed
Fix normal press space bar not emitting actual space
1 parent 3c1d107 commit 8fb150c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public class StrokeInputService
2323
implements InputContainer.OnInputListener
2424
{
2525
private static final String EMPTY_STRING = "";
26+
private static final String SPACE = " ";
2627
private static final String NEWLINE = "\n";
2728

2829
@Override
@@ -61,6 +62,10 @@ public void onKey(String valueText) {
6162
}
6263
break;
6364

65+
case "SPACE":
66+
inputConnection.commitText(SPACE, 1);
67+
break;
68+
6469
case "ENTER":
6570
EditorInfo editorInfo = getCurrentInputEditorInfo();
6671
int editorActionBits = editorInfo.imeOptions;

0 commit comments

Comments
 (0)