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

Prefer Listbox modes with more natural shortcuts #2341

Merged
merged 6 commits into from
Feb 13, 2025

Conversation

t-b
Copy link
Collaborator

@t-b t-b commented Jan 29, 2025

This uses more intuitive shortcuts for selecting multiple cells.

Close #2148

t-b added 5 commits January 29, 2025 16:56
This uses more intuitive shortcuts for selecting multiple cells. Although
we don't need multiple cells here, it is much easier to use a mode which
fill selWave. Which mode 1-2 don't do.
This is more intuitive to use. As that mode sets either LISTBOX_SELECTED
or LISTBOX_SHIFT_SELECTION for a seleted cell, we have to adapt the
FindIndizes calls to search for that, and also search for it as bitmask.
When loading multiple experiments from the analysis browser, we expect
that the total number of sweeps in the display is correct.

This was not the case as we used the last sweep number and not the number
of sweeps.

In addition it was not possible to select sweeps from the popupmenu from
later experiments as it always selected the same sweep from the first
experiment.
This reverts commit 8702208 (AB_GetExpandedIndices: Avoid function call in for loop statement, 2023-03-31).
As the comment clearly states we need to recalculate the wave size on each
iteration as it might change.

This was done to please check-code.sh, so we now also need a NOLINT
@t-b t-b assigned t-b and timjarsky Jan 29, 2025
@t-b t-b removed their assignment Jan 29, 2025
@timjarsky
Copy link
Collaborator

@t-b testing shows that shift enables the selection of multiple items in a list. The Ctrl behavior is the same as without it. I expected that Ctrl would permit the selection of multiple individual list items, while shift would allow for the selection of multiple grouped or adjacent list items. What is the expected behavior?

@timjarsky timjarsky assigned t-b and unassigned timjarsky Jan 29, 2025
@t-b
Copy link
Collaborator Author

t-b commented Feb 4, 2025

@t-b testing shows that shift enables the selection of multiple items in a list. The Ctrl behavior is the same as without it. I expected that Ctrl would permit the selection of multiple individual list items, while shift would allow for the selection of multiple grouped or adjacent list items. What is the expected behavior?

The expected behaviour is that you can select adjacent entries with SHIFT and all other entries with CTRL. You need to reopen the analysis browser for that.

@t-b t-b assigned timjarsky and unassigned t-b Feb 4, 2025
@timjarsky
Copy link
Collaborator

@t-b, is this update limited to the analysis browser, or should other listboxes, like the dashboard, exhibit the same behavior?

@timjarsky timjarsky assigned t-b and unassigned timjarsky Feb 5, 2025
@t-b
Copy link
Collaborator Author

t-b commented Feb 6, 2025

@t-b, is this update limited to the analysis browser, or should other listboxes, like the dashboard, exhibit the same behavior?

Looks like I missed the dashboard. I'll fix that.

@t-b t-b assigned timjarsky and unassigned t-b Feb 10, 2025
@timjarsky
Copy link
Collaborator

@t-b the data browser dashboard is working after the latest changes. Thanks.

@timjarsky timjarsky assigned t-b and unassigned timjarsky Feb 12, 2025
@t-b t-b merged commit d95d80e into main Feb 13, 2025
20 checks passed
@t-b t-b deleted the bugfix/2341-better-listbox-modes branch February 13, 2025 10:05
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.

Revise Listbox modes
2 participants