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

 

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,369)