Closed
Bug 1127609
Opened 9 years ago
Closed 9 years ago
Debug log tab searches in wrong direction
Categories
(Instantbird Graveyard :: Other, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
1.6
People
(Reporter: aleth, Assigned: nhnt11)
Details
Attachments
(1 file, 1 obsolete file)
2.47 KB,
patch
|
aleth
:
review+
|
Details | Diff | Splinter Review |
STR: Repeat search in a debug log tab using the keyboard will search upwards instead of downwards, which is confusing. Probably due to having copied the findbar from a convbrowser.
Assignee | ||
Comment 1•9 years ago
|
||
This fixes the issue. Let me know if the comment is good enough.
Assignee | ||
Comment 2•9 years ago
|
||
A bit of detail: the reversed searching happens because the find commands in instantbird.xul assume that all panels are conversations. The relevant keyboard shortcuts are Cmd(+Shift)+G.
Reporter | ||
Comment 3•9 years ago
|
||
Comment on attachment 8557649 [details] [diff] [review] Patch Review of attachment 8557649 [details] [diff] [review]: ----------------------------------------------------------------- Thanks for taking care of this! ::: im/content/instantbird.xul @@ +77,5 @@ > + return; > + } > + var panel = getTabBrowser().selectedPanel; > + if (!panel) return; > + if (panel.findbar) panel.findbar.onFindAgainCommand(false);"/> I'm not sure, but would it be clearer to do something like var findbar, isReversedDirection = false; var conv = getTabBrowser.selectedConversation; if (conv) { isReversedDirection = true; findbar = conv.findbar; } else { var panel = getTabbrowser.selectedPanel; if (!panel) return; findbar = panel.findbar; } findbar.onFindAgainCommand(isReversedDirection);
Attachment #8557649 -
Flags: review?(aleth) → review+
Assignee | ||
Comment 4•9 years ago
|
||
Moves the code to a function that accepts one parameter to avoid duplication.
Attachment #8557649 -
Attachment is obsolete: true
Attachment #8564456 -
Flags: review?(aleth)
Reporter | ||
Comment 5•9 years ago
|
||
Comment on attachment 8564456 [details] [diff] [review] Patch v2 Review of attachment 8564456 [details] [diff] [review]: ----------------------------------------------------------------- Thanks!
Attachment #8564456 -
Flags: review?(aleth) → review+
Reporter | ||
Updated•9 years ago
|
Keywords: checkin-needed
Reporter | ||
Comment 6•9 years ago
|
||
https://hg.mozilla.org/comm-central/rev/a4d860e127ed
Reporter | ||
Updated•9 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 1.6
You need to log in
before you can comment on or make changes to this bug.
Description
•