Repository navigation
Conversation
The compact mode checkbox wrapper stops click propagation, so a shift click never reached the envelope's range selection handler and the checkbox toggled only the clicked message. Handle shift clicks on the wrapper in the capture phase before the checkbox toggles. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: lazerg <lazerg2@gmail.com>
lazerg
requested review from
ChristophWurst,
GretaD and
kesselb
as code owners
November 25, 2026 06:35
Member
|
Thanks for the patch, @lazerg
Please do that and report the testing results. Thanks! |
Contributor
Author
|
I tested it on Nextcloud 33.0.11 with Mail built from this branch, compact mode on and a local IMAP inbox of 30 messages. With the patch, clicking one checkbox and then shift-clicking one four rows below selects all five; without it, the shift-click only toggles that one message. Plain and Cmd clicks still toggle a single message and don't open it, same as before. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
Closes #14287
In compact mode, shift clicking a message's checkbox only toggled that message instead of selecting the range from the last selected one. The checkbox wrapper stops click propagation, so the envelope's shift click handler never ran.
Approach
The wrapper now catches shift clicks in the capture phase and emits
selectMultiple, the same event the avatar wrapper uses outside compact mode. Stopping the event there also keeps the checkbox from toggling the clicked message on its own. Plain clicks on the checkbox work as before.Testing
Added a unit test that shift clicks the compact checkbox and expects
selectMultiplewithoutupdate:selected. It fails without the fix. Not tested on a live instance. To check manually: enable compact mode, click the checkbox of the first message, then shift click the checkbox of the third one. All three should be selected.AI assistance
Assisted by ClaudeCode:claude-opus-5-5