Separate keyboard activation from row Double Click action in Data Grid 2 - Mendix Forum

Separate keyboard activation from row Double Click action in Data Grid 2

8

Currently, when a Double Click event is configured on a Data Grid 2 row (for example to open an Edit Page or execute a microflow), pressing Spacebar on a selected row triggers the same action.


Steps to Reproduce

1. Configure a Double Click event on a Data Grid 2 row (e.g., open a page or execute a microflow).

2. Open the page containing the Data Grid 2.

3. Select a row in the grid.

4. Press the Spacebar key.


According to Mendix Support, this behavior is currently intended as part of the widgets keyboard accessibility implementation. However, from a usability perspective, mouse double-click actions and keyboard actions should be configurable independently.


Current behavior


This can lead to unexpected user experience and unintended actions. For example:


Proposed enhancement

Provide more granular control over Data Grid 2 row interactions by separating mouse and keyboard behavior.

Possible implementation options:

  1. Keep Double Click actions exclusive to an actual mouse double-click.
  2. Allow Spacebar/Enter to trigger only the regular Click action.
  3. Add a configuration option that allows developers to enable or disable keyboard activation of row actions.


This will prevents accidental navigation and microflow execution, improves usability when editing data directly in Data Grid 2. Provides developers greater flexibility, maintains accessibility while allowing project-specific behavior.


Thank you for considering this enhancement.

asked
0 answers