cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SimonYi
New Member

Input focus is always in a text box

最近,我正在使用 Power Apps 做一个关于收银员的项目。要求之一是用扫描仪扫描支付码进行支付。但是用户还需要支持notebook中扫码器触发的事件,其实就是keyup enter事件。要捕获此事件,您必须在付款代码输入框中设置焦点。如果你想尝试鼠标焦点总是在文本框中怎么办

1 ACCEPTED SOLUTION

Accepted Solutions
v-JessicaG-msft
Community Support
Community Support

Hi @SimonYi ,

 

Do you want to keep the focus of the mouse in the text box?

 

You could add "SetFocus ('Text box')" to the onvisible property of the screen and the onselect or onchange properties of other controls (as well as the Screen control) to set the focus in the text box.

 

Best Regards,

Jessica Gu

 

View solution in original post

1 REPLY 1
v-JessicaG-msft
Community Support
Community Support

Hi @SimonYi ,

 

Do you want to keep the focus of the mouse in the text box?

 

You could add "SetFocus ('Text box')" to the onvisible property of the screen and the onselect or onchange properties of other controls (as well as the Screen control) to set the focus in the text box.

 

Best Regards,

Jessica Gu

 

Helpful resources

Announcements
Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

<
Users online (5,135)