Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Features/bsh/25.1/378432 cell editor popup #1350

Open
wants to merge 2 commits into
base: releases/25.1
Choose a base branch
from

Conversation

bschwarzent
Copy link
Member

No description provided.

When a keystroke is triggered on a descendant of the cell editor field,
the cell editor popup should not be closed. This should also work if the
descendant is not rendered within the cell editor popup's $container.

Consider a cell editor that opens a form that also has an editable
column. If the inner cell editor is closed with Enter, the outer cell
editor popup should not be completed automatically.

Instead of checking if the keystroke's scope target is part of the
$container, we also check the widget hierarchy of the scope target. If
it belongs to the cell editor, we don't trigger completeEdit().

Note: This does not work for forms by default, because they always
override their 'parent' property with the 'displayParent' (see
Form#_setDisplayParent). To allow the CellEditorPopup to properly
recognize the widget hierarchy, the parent has to be restored to the
cell editor field after the form has been created by manually calling
Form#setParent.

378432
When a form field is used as a cell editor of an editable table, it
often needs some adjustments. Previously, only a few selected properties
(e.g. "mode") were updated by the Column and CellEditorPopup classes.
These property adjustments were moved to the new method
FormField#activateCellEditorMode. This allows subclasses to add their
own adjustments by overriding this method.

378432
@bschwarzent bschwarzent self-assigned this Jan 27, 2025
Copy link
Member

@cguglielmo cguglielmo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This enhancement also improves the LookupColumn so that pressing enter in the filter field no longer closes the lookup box popup. Could you mention that in the commit comment as another example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants