Repository navigation
In the desktop app, a notification or tray click closes Group Info and gives the chat the keys, and a dialog or Settings keeps them - #248
Merged
Conversation
…log or Settings the keys select() now closes Group Info and its sheets, a view-once look and the stories window for the chat already open as well as another, and gives the composer the keys only when nothing is left over the chats: a New Chat, New Group or Join dialog, or Settings, stays with the keys while the chat opens under it.
… the dialog or Settings under it select() closed the sheet without handing its keys back, so a dialog or Settings left over the chat had none. It now closes it as Done does. The window test covers it, Back Up over Settings, the chat open as well as another, and a dialog's own chat opening into its composer.
Owner
Author
Review (
|
…over the chats, with the keys As in the Mac app, whose select does nothing for the chat open: Group Info and its sheets, a view-once look, the stories window, the safety number, About and the Core Log stay up and keep the keys. Another chat still closes the ones about the chat left, and the composer still takes the keys only when nothing is over the chats.
Owner
Author
Changed per the owner's decision (2026-11-29), in cb53541What changed:
Tests: I changed these first, and each failed on the previous head (6f9a94a):
The navigate test's Core Log over Settings row now presses Esc twice, since the Core Log stays for the chat open. That row passes on both heads; the Gate on the merged head after |
This was referenced Nov 29, 2026
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.
What changed
select()(core/desktop/src/app/mod.rs) is where every way of opening a chat ends up: a notification's click, the tray, search, the list, a dialog's outcome. It now decides, in that one place, what each panel over the chats does, and who gets the keys.AppStore.selectdoes nothing for the open chat. Before, the composer under them took the keys, so Esc no longer closed the panel and Return sent what was typed.switch(), which leaves the chat.can_search()).switch()no longer focuses the composer itself; onlyselect()called it with a chat.switch()still lets go of the keys when it closes the chat.select(), notswitch().switch()'s other callers (Close Chat, Mark as Unread) can't run while that window is up.Not changed:
Why
#234 fixed this for the safety number sheet, and #243 for About and the Core Log, each with its own line in
select(). Group Info was missed. The cause was thatselect()handed the composer the keys whatever was over it. The owner decided what each panel does (2026-11-29): nothing changes for the chat open, as on the Mac. For another chat, what's about the chat goes, and the dialogs and Settings stay in front.How it was tested
Each test failed before its change:
group::window_tests::a_notification_for_the_group_leaves_the_panel_and_one_for_another_chat_closes_itview_once::window_tests::a_notification_for_its_chat_leaves_the_look_the_keys: the look stays and Esc closes it.stories::window_tests::a_chat_opened_from_under_the_window_closes_it_but_the_one_open_doesntsafety::window_tests::a_notification_for_the_chat_open_leaves_the_sheet_and_one_for_another_closes_itmenus::window_tests::the_core_log_keeps_the_cores_errors_and_gives_the_keys_back: the Core Log stays for the chat open and keeps the keys; it goes for another.navigate::window_tests::a_chat_opened_from_a_notification_under_a_dialog_or_settings_leaves_them_the_keysdialog_donewithOutcome::Open) opens into its composer.Gate, from
core/, on the merged head aftermake update(it merged #249):cargo fmt --check: passcargo clippy --all-targets -q -- -D warnings: passcargo clippy --all-targets --features hush-desktop/snapshot -q -- -D warnings: passcargo test --features hush-desktop/snapshot -q: pass (desktop 314, sig-core 537)What wasn't checked:
app/orcore/sig-corechanges.Closes #237