Skip to content

Commit

Permalink
Press "ENTER" after each scan
Browse files Browse the repository at this point in the history
Press "ENTER" after each scan. Fixes raphaelm#3
  • Loading branch information
sebastiannielsen authored Mar 28, 2021
1 parent 6b407d3 commit 9b2b45e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class BarcodeInputService : InputMethodService(), ZXingScannerView.ResultHandler
lastTime = System.currentTimeMillis()
currentInputConnection.also { ic: InputConnection ->
ic.commitText(rawResult.text, 1)
ic.sendKeyEvent(new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_ENTER))
}
}
}
}

0 comments on commit 9b2b45e

Please sign in to comment.