Skip to content

My Requests: Toggle selection mode with keybinds#1251

Closed
mal-tee wants to merge 1 commit intomasterfrom
m_myr_sel_keybind
Closed

My Requests: Toggle selection mode with keybinds#1251
mal-tee wants to merge 1 commit intomasterfrom
m_myr_sel_keybind

Conversation

@mal-tee
Copy link
Copy Markdown
Member

@mal-tee mal-tee commented Jan 25, 2026

No description provided.

@mal-tee mal-tee added the UI/UX label Jan 25, 2026
@cypress
Copy link
Copy Markdown

cypress bot commented Jan 25, 2026

datenanfragen/website    Run #8834

Run Properties:  status check passed Passed #8834  •  git commit 47f98b6a9a: My Requests: Toggle selection mode with keybinds
Project datenanfragen/website
Branch Review m_myr_sel_keybind
Run status status check passed Passed #8834
Run duration 04m 36s
Commit git commit 47f98b6a9a: My Requests: Toggle selection mode with keybinds
Committer Malte
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 2
Tests that did not run due to a developer annotating a test with .skip  Pending 8
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 84
View all changes introduced in this branch ↗︎

@baltpeter
Copy link
Copy Markdown
Member

Thank you!

I did notice a few quite major regressions, the keyhandler is currently very overzealous:

  • Text entry (e.g. when adding a new message to a proceeding) is completely broken. When you press Shift (in the modal, to capitalize a letter), selection mode is toggled, the event gets swallowed, and focus to the text element is lost.
  • Selection mode toggles even when Ctrl is pressed in combination with other keys, e.g. when copying text with Ctrl + C.

Besides that, merely toggling selection mode with Ctrl/Shift also feels a bit unnatural to me, I'm not sure whether that's a pattern anywhere else. Typically (e.g. in a file browser), I'd say, Ctrl/Shift only has an effect while it is held: While you're holding Ctrl/Shift, you can multi-select files by clicking on them, but as soon as you let go, you're back in normal (single-select) mode.

I'm not sure what the best way to implement keybindings here is, either, but an idea that is more similar to what I described and that we could try is:

  • In keydown, turn selection mode on.
  • In keyup, if the selection is empty, turn selection mode off, otherwise leave it on.

We might even want to let the user select proceedings by clicking on their row (instead of the checkbox) while they key is pressed to mimic file browser behaviour.

But one thing that might make this a bad idea: Holding Shift and clicking already has browser behaviour (text selection) that interferes with our selection…

@mal-tee mal-tee marked this pull request as draft February 6, 2026 12:09
@mal-tee
Copy link
Copy Markdown
Member Author

mal-tee commented Feb 7, 2026

Thank you for the feedback! Superseeded by #1255

@mal-tee mal-tee closed this Feb 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants