Skip to Content
1
Sep 20, 2017 at 06:08 AM

Normal event listeners in Kapsel application don't work

82 Views Last edit Sep 21, 2017 at 02:05 PM 2 rev

We are developing a Fiori Mobile Kapsel application for Android devices. Users have a bluetooth barcode scanner (laser, not camera) which acts like a keyboard, and we need to listen to keydown events to run a search function without the user having to press on an input field.

When running in the browser using the bluetooth scanner, document.addEventListener("keydown", myFunction, false); works as expected. But when built and running on a device the event listener does not work. Is there another object we can attach the event listener to that will work in a Kapsel application?