Openbravo Issue Tracking System - Retail Modules
View Issue Details
0035580Retail ModulesWeb POSpublic2017-03-21 11:362017-04-10 09:48
nataliag 
marvintm 
normalmajoralways
closedfixed 
5
 
RR17Q3 
guilleaer
No
0035580: External keyboard not working well in iOS
When you are using the external input option in an iOS device and you try to insert a number using the keyboard of the device, it is entered twice.
1- Using an iOS device go to "POS Terminal Type" window in backoffice and select the "VBS POS Terminal Type" record, tick the "Use External Input" option.
2- Save changes and go to the POS Terminal.
3- Click on the UPC/EAN field and when the external keyboard appears, press a key, for example number 2. You can see that in the UPC/EAN field it is inserted twice,(22). This happens with all the keys.
No tags attached.
diff issue35580.diff (1,469) 2017-04-07 15:38
https://issues.openbravo.com/file_download.php?file_id=10661&type=bug
Issue History
2017-03-21 11:36nataliagNew Issue
2017-03-21 11:36nataliagAssigned To => Retail
2017-03-21 11:36nataliagResolution time => 1491861600
2017-03-21 11:36nataliagTriggers an Emergency Pack => No
2017-03-21 12:12heccamIssue Monitored: heccam
2017-04-06 13:40plujanIssue Monitored: plujan
2017-04-07 15:38marvintmFile Added: issue35580.diff
2017-04-10 08:31hgbotCheckin
2017-04-10 08:31hgbotNote Added: 0095927
2017-04-10 08:31hgbotStatusnew => resolved
2017-04-10 08:31hgbotResolutionopen => fixed
2017-04-10 08:31hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/0a2a37b9851a5fb16de3fa43711547082f073432 [^]
2017-04-10 08:51marvintmAssigned ToRetail => marvintm
2017-04-10 09:48guilleaerReview Assigned To => guilleaer
2017-04-10 09:48guilleaerStatusresolved => closed
2017-04-10 09:48guilleaerFixed in Version => RR17Q3

Notes
(0095927)
hgbot   
2017-04-10 08:31   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 0a2a37b9851a5fb16de3fa43711547082f073432
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Fri Apr 07 15:20:16 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/0a2a37b9851a5fb16de3fa43711547082f073432 [^]

Fixed issue 35580. Keys will no longer be duplicated if external scanner is not connected
The main problem was that for some reason, in iOS, keypress event always happens, but the keyup event only happens in case there is no external keyboard or scanner connected and the virtual keyboard is used instead, which means that when the virtual keyboard is used, both events are triggered, and the keys appear twice. Therefore, the solution has been to completely disable the use of the keyup event in iOS, and use only the keypress event. No change of behavior is required in other platforms.

---
M web/org.openbravo.mobile.core/source/component/ob-terminal-component.js
---