cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Listen for a keystroke

I am trying to listen for a keystroke. I got an bar-code reader and I would like to scan an code. I got an keyboard emulator for this that types in the scanned code and then hits enter. I was wondering if I could listen for that and then do an action on that.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Listen for a keystroke

@FrankBekema 

Unfortunately, I have not found a way to do this. I use the Screen's OnVisible property to SetFocus() to a textinput.

I had a similar question here if you'd like to follow it.

https://powerusers.microsoft.com/t5/Building-Power-Apps/Improving-interface-experience-with-Zebra-An...

---
If this answered your question, please click "Accept Solution". If this helped, please Thumbs Up.

View solution in original post

3 REPLIES 3
Highlighted
Super User
Super User

Re: Listen for a keystroke

You can use a text input's OnChange property and it will trigger when enter is sent. I'm using this on Zebra devices and with barcode scanners on PC. Works well.

---
If this answered your question, please click "Accept Solution". If this helped, please Thumbs Up.

Highlighted
Frequent Visitor

Re: Listen for a keystroke

@EricLott Is it possible to make it listen without clicking the text input first?

Highlighted
Super User
Super User

Re: Listen for a keystroke

@FrankBekema 

Unfortunately, I have not found a way to do this. I use the Screen's OnVisible property to SetFocus() to a textinput.

I had a similar question here if you'd like to follow it.

https://powerusers.microsoft.com/t5/Building-Power-Apps/Improving-interface-experience-with-Zebra-An...

---
If this answered your question, please click "Accept Solution". If this helped, please Thumbs Up.

View solution in original post

Helpful resources

Announcements
Ignite

Microsoft Ignite

This will be a conference that you do not want to miss!

secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (4,105)