Useless to set focus on a readonly field

Description

Hi,

When you click on the tab key, the focus is set on the next field.
When the field is in readonly mode, there is not interest to be focused on.
In this case, the focus should be placed on the next field 'writable'.

Open Sales Order window, create a new record and save.
The Document field is not writable.
Then, change the organization and click on tab. Focus is set on DocumentNo. It would be better to set the focus on Reference

Regards,

Nicolas

Environment

None

Activity

Show:

Carlos Ruiz February 13, 2020 at 12:08 AM

Hi , I splitted the commit for this ticket in two pieces:

https://github.com/idempiere/idempiere/commit/46c60f3
committed in 7.1 - it changes the navigation when selecting a value on a list or an info window, the cursor navigates to the next enabled field

About the second commit
https://github.com/idempiere/idempiere/commit/e456d65
I pushed it just to master because it is more disruptive.
The change to avoid focusing a read-only field with the tab key navigation is to set it to disabled, not just read-only.
But changing the field to disabled requires changes in theme.
I implemented the change to textboxes and numeric fields and the change in theme is OK.
But implemented the same on date fields and they look too pale, didn't find the right change on the theme to show them more obscure.

Please test.

Regards,

Carlos Ruiz

Fixed

Details

Assignee

Reporter

Priority

Created October 27, 2016 at 1:51 PM
Updated April 1, 2020 at 3:28 PM
Resolved February 13, 2020 at 12:08 AM