diff --git a/app/src/main/java/io/rami/barcodekeyboard/BarcodeInputService.kt b/app/src/main/java/io/rami/barcodekeyboard/BarcodeInputService.kt index 95f4ba1..183be1e 100644 --- a/app/src/main/java/io/rami/barcodekeyboard/BarcodeInputService.kt +++ b/app/src/main/java/io/rami/barcodekeyboard/BarcodeInputService.kt @@ -66,6 +66,7 @@ class BarcodeInputService : InputMethodService(), ZXingScannerView.ResultHandler lastTime = System.currentTimeMillis() currentInputConnection.also { ic: InputConnection -> ic.commitText(rawResult.text, 1) + ic.sendKeyEvent(KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_ENTER)) } } -} \ No newline at end of file +}