Closed Bug 1847432 Opened 3 years ago Closed 14 days ago

ctrl+shift+K stops working

Categories

(Thunderbird :: Mail Window Front End, defect)

Thunderbird 114
defect

Tracking

(thunderbird_esr153 affected, thunderbird158 wontfix, thunderbird159 wontfix, thunderbird160 wontfix, thunderbird161 affected)

RESOLVED FIXED
161 Branch
Tracking Status
thunderbird_esr153 --- affected
thunderbird158 --- wontfix
thunderbird159 --- wontfix
thunderbird160 --- wontfix
thunderbird161 --- affected

People

(Reporter: wsmwk, Assigned: welpy-cw, NeedInfo)

References

Details

Attachments

(1 file, 1 external file)

ctrl+shift+K to invoke quick filter randomly stops working. Mac 117 beta.

Probably predates 115. I don't know how to reproduce. Nothing obvious in error console. It's happened a few times this year. Only a restart restores function.

Related to Bug 1763655? Quickfilter (ctrl+shift+k) does not work / does not show searchable items

Attached file keyboard log —

I still have no clue what is triggering this.

I started the log, hit ctrl+shift+K, then shut down Thunderbird.

Flags: needinfo?(mkmelin+mozilla)

I haven't seen anything on linux. I guess Mac specific? The log looks like there's some kind of infinite loop going on there.

Maybe from something from the recent checkins for https://hg.mozilla.org/mozilla-central/log/tip/widget/cocoa/TextInputHandler.mm

Flags: needinfo?(mkmelin+mozilla)

Seen again in recent weeks

still happens (on Mac)

I'm seeing this on Linux, too (Bug 1921469).

Just had this again with 128.6.0esr. It's quite dangerous since I will type "Ctrl-Shift-K <filter text here>", and now Thunderbird interprets the filter text as shortcuts, so e.g. if it contains a "J" I am marking a random email as junk -- the actions accidentally performed this way can be non-trivial to un-do.

What kind of debug information would be helpful? I see nothing in the error console.

(In reply to Wayne Mery (:wsmwk) from comment #4)

still happens (on Mac)

I've seen this a few times more in the last couple years.

(In reply to Ralf Jung from comment #7)

...
What kind of debug information would be helpful? I see nothing in the error console.

Don't know.

mstange any ideas?

Flags: needinfo?(mstange.moz)

Happened to me the first time today (long-time user). Ubuntu 24 LTS, Thunderbird 153.0.

This is still a problem with 153.0.3esr.

I found reliable steps to reproduce and the likely cause (Thunderbird 158.0, Linux/Wayland).
No extensions are needed.

STR:

  1. In a mail tab, press Ctrl+Shift+K -> the Quick Filter Bar toggles as expected.
  2. Open any content tab: Tools > Add-ons and Themes, Settings, or Account Settings.
  3. Switch back to the mail tab (click the tab or Ctrl+Tab).
  4. Press Ctrl+Shift+K -> nothing happens.

Switching back from the Calendar tab does NOT break it. Switching to the Calendar tab
and then back to the mail tab makes the shortcut work again.

Cause: key_qfb_show is bound to <command id="cmd_showQuickFilterBar">. The command gets
disabled while a content tab is selected, and nothing re-evaluates it when you return
to a mail tab. Running this in the Browser Console restores the shortcut:

Services.wm.getMostRecentWindow("mail:3pane").goUpdateCommand("cmd_showQuickFilterBar")

The Calendar tab doesn't have this problem because calendarTabMonitor.onTabSwitched()
calls calendarController2.updateCommands(), which includes cmd_showQuickFilterBar,
when leaving the calendar/task tab. A mail tab probably needs to re-evaluate this
command (and maybe cmd_toggleQuickFilterBar) in its showTab/onTabSwitched.

Workaround: bind ctrl+shift+k to "cmd:cmd_showQuickFilterBar" with tbkeys-lite.
goDoCommand() checks the controllers directly, so the stale disabled state is bypassed.

Assignee: nobody → h.w.forms
Status: NEW → ASSIGNED

Refresh mail and calendar command sets after tab selection, active mail-tab
loading, and Account Hub closure using a shared command-context-changed
update. Guard folder-pane readiness during startup and document command
updates.

Update New Message when account identities are added or accounts are removed,
and refresh tag commands when opening the Tag popup.

Add regression coverage for tab changes and loading, Quick Filter keyboard
focus, first-account setup and identity changes, and Tag popup actions.

Attachment #9668004 - Attachment description: Bug 1847432 - Refresh command state when the command context changes. r=#thunderbird-reviewers → Bug 1847432 - Refresh command state when the command context changes. r=mkmelin

Pushed by daniel@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/512e24afbcf0
Refresh command state when the command context changes. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 14 days ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: