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

Events::recurse_range, kas_core::Popup, EventState::depress_with_key #405

Merged
merged 24 commits into from
Aug 30, 2023

Conversation

dhardy
Copy link
Collaborator

@dhardy dhardy commented Aug 30, 2023

Add Events::recurse_range and use to restrict both configure and update to (a superset of) visible widgets. As a consequence, hidden widgets may not have a WidgetId assigned, which required a change in the gallery but otherwise appears fine. This could be changed if required.

Add kas_core::Popup widget as the root of all popups (similar to the Window widget). This avoids redundant logic in ComboBox and SubMenu and fixes some things in the gallery's popup. Several more fixes related to popups included (including the annoying mouse focus issue in the gallery's pop-up edit-box).

Rename "accelerator keys" to "access keys" which is a more standard name (the other being mnemonics).

Add EventState::depress_with_key; widgets are now call this explicitly to depress themselves as a result of key-activation. This fixes button-depression on key usage in the calculator and adds it for Tab widgets and Spinner up/down buttons (those need better visuals now).

This doesn't change anything except that _nav_next is now
the only reason a direct impl of Widget is required.
This removes some automatic closures of popups.
This is unused and likely not useful once translation is enabled
This is more standard terminology (also: mnemonic key).
This fixes button depress in the calculator, also depressing
tabs and spinner mark-buttons.
@dhardy dhardy merged commit e449c6a into master Aug 30, 2023
5 checks passed
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.

1 participant