简体   繁体   English

扫描条形码后设置焦点有时无法工作

[英]Setting a focus after scanning of barcode is not working sometimes

When I am running application on my machine setting of focus on a text field working fine but if same application running from another machine then its not working 当我在计算机上运行应用程序时,将焦点放在一个文本字段上可以正常工作,但是如果同一应用程序在另一台计算机上运行,​​则无法正常工作

I checked the browser setting but both browse are same, Only OS is different 我检查了浏览器设置,但两个浏览器都相同,只有操作系统不同

I used callout in adempiere on the text feild 我在文本字段的adempiere中使用标注

I want set the focus on field after scanning a barcode 我想在扫描条形码后将焦点放在字段上

How the browser moves the focus will depend on the scanner you use as well. 浏览器如何移动焦点也取决于您使用的扫描仪。 The Swing GUI should react to the enter key to bind the scanned data in the field. Swing GUI应该对Enter键作出反应,以将扫描的数据绑定到该字段中。 Then the tab key will move the focus. 然后,Tab键将移动焦点。 You can use the callout for this, but beware what keystrokes the scanner is adding as it may be programmed differently between the two computers. 您可以为此使用标注,但要注意扫描器要添加的按键功能,因为两台计算机之间的编程方式可能不同。 Rather than writing a callout, it would be easier to program the scanner to enter the required number of tab key hits to get to the field you are targeting. 与编写标注相比,对扫描仪进行编程以输入所需数量的Tab键命中次数可以更轻松地到达要定位的字段,而不是编写标注。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM