tg icon indicating copy to clipboard operation
tg copied to clipboard

Entity Master: autofocus refinement

Open 01es opened this issue 1 year ago • 0 comments

Description

Each time an Entity Master is opened, the first editable property is automatically focused unless a preferred property is specified. This behavior applies to both persistent and action entities. However, this approach is not always practical, and refining the autofocusing rules is necessary to enhance the user experience.

  • [ ] 1. Autofocusing should always prioritise a preferred property over the first editable property. This is the current behavior and should remain unchanged. Ensure that this functionality is preserved.

  • [ ] 2. Autofocusing on either the first editable property or a preferred property should always occur for new entity instances, regardless of the entity category (persistent or action). This is the current behavior and must remain unchanged. Ensure that this functionality is maintained.

  • [ ] 3. Autofocusing on the first editable property should not occur for persisted instances, regardless of the entity category. Hitting Tab for the first time immediately after opening a master for a persisted instance should focus the first editable property editor from the top and left. However, if a preferred property is specified, it should be focused. It is the responsibility of the application engineer to assign or remove the preferred property when specific focusing behaviour is required for a persisted entity instance.

  • [ ] 4. Saving or refreshing entities in Entity Masters should retain the focus on the last property editor manually selected by the user, unless a preferred property is specified. This logic does not apply if an Entity Master is closed and reopened.

  • [ ] 5. An Entity Master used in navigation mode should retain the last manually focused property editor, unless a preferred property is specified. This logic does not apply if the Entity Master is closed and reopened.

Change overview

Expected outcome

A more convenient default behaviour for focusing property editors in Entity Centres.

01es avatar Dec 23 '24 09:12 01es