Closed Bug 166704 Opened 22 years ago Closed 22 years ago

Alt+tabbing to another app & back can disable typeaheadfind

Categories

(SeaMonkey :: Find In Page, defect, P1)

x86
Windows 2000
defect

Tracking

(Not tracked)

VERIFIED FIXED
mozilla1.1alpha

People

(Reporter: aaronlev, Assigned: aaronlev)

References

Details

Attachments

(3 files)

If you use Alt+Tab, but let go of the alt before the tab, typeaheadfind gets
disabled.

This is because typeaheadfind receives a DOMMenuBarActive event, but not a
DOMMenuBarInactive event. It turns out that ToggleMenuActiveState() uses
SetActive(PR_TRUE) to turn on menus, but it doesn't use SetActive(PR_FALSE) to
turn them off. SetActive is where the DOMMenuBar* events are fired.

This occurs on Windows, possibly on Linux.
Blocks: isearch
Status: NEW → ASSIGNED
Priority: -- → P1
Target Milestone: --- → mozilla1.1alpha
Should get review from hyatt, he's the only one who's touched this code.
Otherwise, please tell me who should review it now.
i'm not sure which bug tracks it. but after i copy from browser and paste into
mailnews composer i can't actually type letters into it. I have to alt-tab back
to navigator, press a key and alt-tab back to mailnews composer. (w32 2002090408)
Summary: Alt+tabbing to anoither app & back can disable typeaheadfind → Alt+tabbing to another app & back can disable typeaheadfind
Timeless, I can't dup that bug. It's different than this bug anyway. You can
file a new bug if you like. Could you include more details of the behavior -
does it start searching for what you type while you're in mailcompose? Does the
status bar say anything?
Comment on attachment 97855 [details] [diff] [review]
Patches nsMenuBarFrame.cpp, changes ToggleMenuActiveState()

looks good to me. there is one nit: seems InstallKeyboardNavigator() was called
twice. could you fix this too?
Comment on attachment 97910 [details] [diff] [review]
Gets rid of unneeded call to InstallKeyboardNavigator(), and fixes comment to say we use the menuactive attribute

r=kyle
Attachment #97910 - Flags: review+
fwiw my concern was bug 166955 which has been fixed
Kyle, could you test this on Linux or Solaris for me, and make sure that we
never lose the caret when Alt+Tabbing or using the menubar, and that everything
related to the menubar still works?
I tried all kinds of things on Windows, and couldn't see any difference. No
surprises there. Kyle is testing on Unix.

Also have the annotated patch describing each change attached to this bug.
Comment on attachment 97910 [details] [diff] [review]
Gets rid of unneeded call to InstallKeyboardNavigator(), and fixes comment to say we use the menuactive attribute

sr=jst
Attachment #97910 - Flags: superreview+
Asa gave a= on IRC
tested this patch on Solaris, it works fine. 

aaron, some sr may dislike to put 1-line |if|/|else| bodies into a {} block (in 
SetActive()).
checked in
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
looks fixed on win2k and linux rh7.2, 2002.09.24.08 mozilla trunk.
Status: RESOLVED → VERIFIED
Component: Keyboard: Navigation → Keyboard: Find as you Type
Product: Core → SeaMonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: