Closed Bug 194945 Opened 22 years ago Closed 21 years ago

Caret isn't present when toggling to a composer window

Categories

(SeaMonkey :: Composer, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: chrispetersen, Assigned: jag+mozilla)

Details

(Keywords: helpwanted, Whiteboard: [adt3])

Attachments

(1 file)

Build: 2003-02-24-03
Platform: All
Expected Results: Caret should be present in window
What I got: When toggling between two composer windows, each document's caret is
not present.

Steps to reproduce:

1) Create two new composer windows
2) Notice that when you click on the window's title bar, it comes to the front
of the stacking order and displays the document's caret. When switching between
the windows in this matter, the caret will appear.
3) Now, press command (ctrl) - 4 keys to toggle between these same windows.
4) Notice the caret doesn't appear in the top most window.
it's quite annoying not to be able to type when the window order changes (even
if I just cycle back to where I was)

fix should be pretty simple (1 line to focus the content area wherever the
window-menu toggling is done)
Keywords: nsbeta1
Composer triage team: nsbeta1+/adt3
Assignee: composer → jaggernaut
Keywords: nsbeta1helpwanted, nsbeta1+
Whiteboard: [adt3]
Attached patch Proposed patchSplinter Review
This makes it so that the previously focused DOM window is focused.
Attachment #115633 - Flags: superreview?(jaggernaut)
Attachment #115633 - Flags: review?(brade)
Comment on attachment 115633 [details] [diff] [review]
Proposed patch

assuming you've tested all the various window types etc...
r=brade
Attachment #115633 - Flags: review?(brade) → review+
Comment on attachment 115633 [details] [diff] [review]
Proposed patch

I'm wondering if this will make us focus the content window in browser if the
urlbar is selected...

What's happening here that's causing the caret to get lost? I just looked at
the equivalent of this in the browser, with two browser windows with google. If
I put focus in the urlbar, toggle to the other window, then back, focus is
still in the urlbar (though all of the text is selected, maybe we have some
special handler for this?), if I put it in the google input field, the caret is
gone.

focusedWindow.focus() seems like something that shouldn't need to be done (why
do we need to focus something that's already focused?). What's the real fix?
Attachment #115633 - Flags: superreview?(jaggernaut) → superreview-
Comment on attachment 115633 [details] [diff] [review]
Proposed patch

The current code always focuses the chrome window, which is always wrong in the
case of Composer, but may well also be wrong for other windows where we want to
focus the content when it was previously focused. So instead of blithely
focusing aWindow I want to focus the most recently focused frame of aWindow
instead.
Attachment #115633 - Flags: superreview- → superreview?
Attachment #115633 - Flags: superreview? → superreview?(jaggernaut)
Comment on attachment 115633 [details] [diff] [review]
Proposed patch

sr=jag
Attachment #115633 - Flags: superreview?(jaggernaut) → superreview+
this sounds related to a html compose window regression, see bug #195798
sorry, that bug is about new msg compose windows, not about toggling between two
existing ones.
Fix checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Verified in the 2003-04-10-08 Macho and Win32 2003-04-10-04 trunk builds.
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: