Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0016730Openbravo ERPB. User interfacepublic2011-04-08 15:112011-08-09 14:30
normalmajorhave not tried
closedunable to reproduce 
0016730: Clicking a field with values does not select current contents
There is an inconsistency between keyboard and mouse usage. If I am completing, for saying, a Purchase Line, using the keyboard for navigation, when a field has the focus it selects all the current content. However, when focusing by mouse clicking the content gets no focus. See steps.

The mouse usage is currently implemented by smoke tests, so the wrong behavior are making them to fail.
1. Log in as QAAdmin
2. Go to Purchase Order and create a header
3. Go to Lines and click New
4. Fill the product with Raw material A
5. Note that focus has moved to Description field.
6. Using mouse, click in Ordered Quantity field. Current value is not selected, so if you type "2", the actual value will be "12" (wrong)
7. Click in Description field again to change focus.
8. Hit the Tab key. Now Ordered Quantity has focus again, but now the current value is selected. So if you type "2" the actual value will be "2" (correct)
No tags attached.
related to defect 00176003.0MP2 closed mtaal When editing date-field in grid, trying to mark only month of it with the mouse does not work 
related to defect 00180723.0MP4 closed mtaal Focus handling in form and grid editing needs to be cleaned up, results in unpredictable behavior 
related to defect 00173233.0MP2 closed mtaal When you enter the product, the cursor jumps to the qty but the value in the field is not selected. 
Issue History
2011-04-08 15:11plujanNew Issue
2011-04-08 15:11plujanAssigned To => dbaz
2011-04-08 15:11plujanModules => Core
2011-04-08 17:05dbazAssigned Todbaz => mtaal
2011-04-11 10:14alostaleStatusnew => scheduled
2011-04-11 10:14alostaleAssigned Tomtaal => alostale
2011-04-11 10:14alostalefix_in_branch => pi
2011-04-28 12:54hgbotCheckin
2011-04-28 12:54hgbotNote Added: 0036156
2011-04-28 12:54hgbotCheckin
2011-04-28 12:54hgbotNote Added: 0036157
2011-05-07 02:56hgbotCheckin
2011-05-07 02:56hgbotNote Added: 0036536
2011-05-16 17:04psarobePrioritynormal => urgent
2011-05-16 17:04psarobeTarget Version => 3.0MP0
2011-05-16 17:04psarobefix_in_branchpi =>
2011-05-17 09:15iperdomoPriorityurgent => normal
2011-05-24 08:39jecharriRelationship addedrelated to 0017323
2011-06-02 10:53dmitry_mezentsevTarget Version3.0MP0 => 3.0MP1
2011-06-22 19:57dmitry_mezentsevTarget Version3.0MP1 => 3.0MP2
2011-07-18 10:08mtaalNote Added: 0039142
2011-07-18 11:12mtaalAssigned Toalostale => mtaal
2011-07-18 11:13mtaalNote Added: 0039150
2011-07-18 11:13mtaalRelationship addedrelated to 0017600
2011-07-18 14:16mtaalNote Edited: 0039150bug_revision_view_page.php?bugnote_id=0039150#r2435
2011-08-01 16:07mtaalTarget Version3.0MP2 => 3.0MP3
2011-08-01 16:09mtaalRelationship addedrelated to 0018072
2011-08-09 14:30mtaalStatusscheduled => closed
2011-08-09 14:30mtaalResolutionopen => unable to reproduce

2011-04-28 12:54   
Repository: tools/automation/int
Changeset: ffab82759f4e0edd72d57aa8824d267602e6a203
Author: Pablo Lujan <pablo.lujan <at>>
Date: Thu Apr 14 17:07:16 2011 +0200
URL: [^]

Workarounds issue 16730 in InitialClientSetup

M src-test/com/openbravo/test/integration/erp/gui/general/client/initialclientsetup/
2011-04-28 12:54   
Repository: tools/automation/int
Changeset: 07933a453232ed1ec3c74db2e464ef8a3ff8282a
Author: Pablo Lujan <pablo.lujan <at>>
Date: Thu Apr 14 17:13:38 2011 +0200
URL: [^]

Workarounds issue 16730 for InitialOrganizationSetup

M src-test/com/openbravo/test/integration/erp/gui/general/enterprise/initialorganizationsetup/
2011-05-07 02:56   
Repository: tools/automation/int
Changeset: 3fa2be2e77d636912aa1d9eb266ccaa90dc4a7e2
Author: Pablo Lujan <pablo.lujan <at>>
Date: Tue May 03 11:53:39 2011 +0200
URL: [^]

Related to issue 16730, selenium should overwrite current username field value

M src-test/com/openbravo/test/integration/erp/testsuites/smoke/masterdata/
2011-07-18 10:08   
The question is if this a bug or a feature.

FYI the current behavior is intended, and standard SC behavior. When you click with the mouse you can place the cursor at a specific location (to add for example a missing character in a text). If the complete value gets selected then this is not possible.

I remember that this topic was discussed earlier but I don't remember the conclusion then...

I asked Rob to also comment.

gr. Martin
2011-07-18 11:13   
(edited on: 2011-07-18 14:16)
This can be solved by setting selectOnFocus to true for the form, this would also solve another issue I have in grid editing (which does select on focus on default).