Closed
Bug 317419
Opened 20 years ago
Closed 17 years ago
Use new clickSelectsAll property in quick search fields
Categories
(SeaMonkey :: UI Design, enhancement)
SeaMonkey
UI Design
Tracking
(Not tracked)
RESOLVED
FIXED
seamonkey2.0a2
People
(Reporter: neil, Assigned: Natch)
References
Details
Attachments
(2 files, 5 obsolete files)
|
3.24 KB,
patch
|
philor
:
review+
|
Details | Diff | Splinter Review |
|
8.78 KB,
patch
|
Details | Diff | Splinter Review |
Offhand I know of three: help, mail, addressbook.
Comment 1•20 years ago
|
||
(In reply to comment #0)
> Offhand I know of three: help, mail, addressbook.
>
Don't forget the address book sidebar as well ;-)
| Reporter | ||
Comment 2•20 years ago
|
||
Speaking of sidebars, bookmarks sidebar has a search field, and the bookmarks manager has one too.
| Reporter | ||
Updated•20 years ago
|
Keywords: helpwanted
Whiteboard: [good first bug]
Comment 3•17 years ago
|
||
Filter "spam" on "guifeatures-nobody-20080610".
Assignee: guifeatures → nobody
QA Contact: guifeatures
| Assignee | ||
Comment 4•17 years ago
|
||
This patches the history and bookmarks sidebar, the browser search bar already has clickSelectsAll set.
Attachment #335974 -
Flags: review?
| Assignee | ||
Comment 5•17 years ago
|
||
Heres for the dm and em, this is all (I believe) the searchbars in firefox, anyone care to point me to the others?
Attachment #335975 -
Flags: review?
Be nice to do the SeaMonkey ones too seeing this is a SeaMonkey bug!
Comment 7•17 years ago
|
||
As http://developer.mozilla.org/En/Getting_your_patch_in_the_tree says,
you should request reviews on the patches according to the rules of the area you're changing. In this case these two pages are relevant:
http://www.mozilla.org/projects/firefox/review.html
http://www.mozilla.org/projects/toolkit/review.html
Updated•17 years ago
|
Attachment #335974 -
Flags: review? → review?(gavin.sharp)
Updated•17 years ago
|
Attachment #335975 -
Flags: review? → review?(gavin.sharp)
Comment 8•17 years ago
|
||
Do any of these have existing code that implements the behavior that would need to be removed? Would be best to put Firefox patches in a Firefox bug, really...
| Assignee | ||
Comment 9•17 years ago
|
||
(In reply to comment #8)
> Do any of these have existing code that implements the behavior that would need
> to be removed? Would be best to put Firefox patches in a Firefox bug, really...
>
none of those places display that behavior yet, did check for it though and the only place is the browser top search bar... and it uses clickselectsall
| Assignee | ||
Comment 10•17 years ago
|
||
Any other apps/widgets etc. please point them out to me.
Thanks
Attachment #335975 -
Attachment is obsolete: true
Attachment #336009 -
Flags: review?(gavin.sharp)
Attachment #335975 -
Flags: review?(gavin.sharp)
| Assignee | ||
Comment 11•17 years ago
|
||
Comment on attachment 336009 [details] [diff] [review]
Revised toolkit patch to include help.xul
sorry cant use clickselectsall on a toolbaritem
Attachment #336009 -
Attachment is obsolete: true
Attachment #336009 -
Flags: review?(gavin.sharp)
| Assignee | ||
Updated•17 years ago
|
Attachment #335975 -
Attachment is obsolete: false
Attachment #335975 -
Flags: review?(gavin.sharp)
| Assignee | ||
Comment 12•17 years ago
|
||
Here's some Seamonkey stuff the FF stuff I put in bug 453255.
(Help isn't used in FF anymore but I put it in the other bug b/c it's in toolkit)
Attachment #335974 -
Attachment is obsolete: true
Attachment #335975 -
Attachment is obsolete: true
Attachment #336443 -
Flags: review?
Attachment #335974 -
Flags: review?(gavin.sharp)
Attachment #335975 -
Flags: review?(gavin.sharp)
| Assignee | ||
Updated•17 years ago
|
Attachment #336443 -
Flags: review? → review?(jag)
| Reporter | ||
Updated•17 years ago
|
Attachment #336443 -
Attachment description: Seamonkey patch (mail/sidebar) → Thunderbird patch (mail/sidebar)
Attachment #336443 -
Attachment filename: patchSMClick → patchTBClick
Attachment #336443 -
Flags: review?(jag) → review?(philringnalda)
| Reporter | ||
Comment 13•17 years ago
|
||
Comment on attachment 336443 [details] [diff] [review]
[checked in] Thunderbird patch (mail/sidebar)
Actually this is all Thunderbird code...
Comment 14•17 years ago
|
||
Comment on attachment 336443 [details] [diff] [review]
[checked in] Thunderbird patch (mail/sidebar)
Well, even if nobody else likes your patches in this bug, I do - among other things, it fixes bug 451051. r=me, thanks, and pushed in http://hg.mozilla.org/comm-central/rev/676331118c6d
Attachment #336443 -
Attachment description: Thunderbird patch (mail/sidebar) → [checked in] Thunderbird patch (mail/sidebar)
Attachment #336443 -
Flags: review?(philringnalda) → review+
Updated•17 years ago
|
| Assignee | ||
Comment 15•17 years ago
|
||
If there's anything I missed feel free to point it out. I stuck a clickSelectsAll in cookieViewer.xul, just pull it out if you don't like it ;).
Asking neil for review (just mentioning it here b/c in the past my attempts at figuring out your review name failed :(, there ought to be an easier more intuitive way to find those... not this bug though)
Attachment #338382 -
Flags: review?
| Reporter | ||
Updated•17 years ago
|
Attachment #338382 -
Flags: review? → review-
| Reporter | ||
Comment 16•17 years ago
|
||
Comment on attachment 338382 [details] [diff] [review]
Hope I got Seamonkey here:)
>- <textbox id="sidebar-search-text" flex="1"
>+ <textbox id="sidebar-search-text" flex="1" clickSelectsAll="true"
> onkeypress="if (event.keyCode == 13) doSearch();"
> oninput="doEnabling();" />
Please only do the type="search" textboxes.
(Don't even do this one which should be a type="search" but isn't.)
Also, there are some type="search" textboxes in mailnews/ of which I think one belongs to suite and the others are all shared with Thunderbird.
| Assignee | ||
Comment 17•17 years ago
|
||
Alright I got the mailnews and took out the ones without type="search", some of the files have onfocus handlers that do this.select(), I can't remove them b/c there are keys and labels attached to them that wouldn't select the text without these handlers (IMO a focusSelectsAll would do better in these cases). I mixed all the mailnews stuff in this patch, dunno if i need a TB review or if you want me to split them up...
Again review ? (neil)
Attachment #338382 -
Attachment is obsolete: true
Attachment #338540 -
Flags: review?
| Reporter | ||
Comment 18•17 years ago
|
||
Comment on attachment 338540 [details] [diff] [review]
Addresses Comment #16
> <textbox id="searchInput" flex="1" type="search"
>- oncommand="onEnterInSearchBar();"/>
>+ oncommand="onEnterInSearchBar();"
>+ clickSelectsAll="true"/>
Nit: trailing spaces
> <textbox id="searchInput" flex="1" type="search"
> aria-labelledby="lookInLabel addressbookList forLabel"
>- oncommand="onEnterInSearchBar();"/>
>+ oncommand="onEnterInSearchBar();"
>+ clickSelectsAll="true"/>
> </hbox>
For these it would be neater if you put clickSelectsAll on the previous line so that the patch isn't so messy.
>- onfocus="this.select();" onclick="this.select();"/>
>+ onfocus="this.select()" clickSelectsAll="true"/>
Ah yes, if you're on Linux and use an Alt shortcut to focus the field then it normally won't select all by default. (Maybe we should remove this anyway?)
>+ <textbox id="searchInput" flex="1" onfocus="this.select();" clickSelectsAll="true" onkeypress="if (event.keyCode == KeyEvent.DOM_VK_RETURN) this.select();" oncommand="onEnterInSearchBar();" type="search"/>
For very long lines such as this it would be handy if you could manage to wrap it to fit to about 80 columns. (I know, it's my fault for not doing it when I added type="search".)
Attachment #338540 -
Flags: review? → review+
| Assignee | ||
Comment 19•17 years ago
|
||
(In reply to comment #18)
Done.
I also removed the onfocus handler as it's inconsistent with the rest of the search textboxes and per your previous comment.
Attachment #338540 -
Attachment is obsolete: true
| Assignee | ||
Comment 20•17 years ago
|
||
neil can this get checked in now or do you want to re-review it?
| Reporter | ||
Comment 21•17 years ago
|
||
We're in alpha freeze right at the moment, but once we release you can add the checkin-needed keyword and someone will push it to comm-central.
| Assignee | ||
Updated•17 years ago
|
Status: NEW → ASSIGNED
Keywords: checkin-needed
| Reporter | ||
Comment 22•17 years ago
|
||
Pushed changeset 4e3fbb4603b5 to comm-central.
Comment 23•17 years ago
|
||
Comment on attachment 338562 [details] [diff] [review]
Nits addressed
[Checkin: Comment 22]
"abort: patch failed to apply"
Attachment #338562 -
Attachment description: [for-checkin]Nits addressed → Nits addressed
Comment 24•17 years ago
|
||
Comment on attachment 338562 [details] [diff] [review]
Nits addressed
[Checkin: Comment 22]
(In reply to comment #23)
> (From update of attachment 338562 [details] [diff] [review])
> "abort: patch failed to apply"
Already checked in :-/
Attachment #338562 -
Attachment description: Nits addressed → Nits addressed
[Checkin: Comment 22]
Updated•17 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → seamonkey2.0a2
Version: unspecified → Trunk
You need to log in
before you can comment on or make changes to this bug.
Description
•