Closed
Bug 301435
Opened 19 years ago
Closed 8 years ago
Rich list box focus gets lost when focused item removed from list
Categories
(Toolkit :: UI Widgets, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: aaronlev, Assigned: doronr)
Details
(Keywords: access)
Attachments
(1 file, 2 obsolete files)
|
2.89 KB,
patch
|
mconnor
:
first-review+
mconnor
:
approval1.8b4+
|
Details | Diff | Splinter Review |
1. Go to download manager 2. Arrow down to one of the items 3. Tab to "remove" 4. Hit enter Focus goes away in the list. You can tab to other things, but not back into the list. This means that kbd users cannot really clean up their list of downloads.
Updated•19 years ago
|
Component: Disability Access → XUL Widgets
Product: Firefox → Toolkit
QA Contact: disability.access → xul.widgets
| Reporter | ||
Comment 2•19 years ago
|
||
This also fixes bug 300780 -- initial focus in download/extension/theme manager
Assignee: doronr → aaronleventhal
Status: NEW → ASSIGNED
Attachment #189927 -
Flags: first-review?(mconnor)
| Reporter | ||
Updated•19 years ago
|
Attachment #189927 -
Flags: first-review?(mconnor)
| Reporter | ||
Comment 3•19 years ago
|
||
Another thing that would be nice would be to show focus on the #saveToFolder button at the bottom. Right now when you tab to it, focus disappears. I tried adding a style rule for :focus to that or toolbarbutton in general, but most of my style rules wouldn't take for some reason, even with !important.
Attachment #189927 -
Attachment is obsolete: true
Attachment #189998 -
Flags: first-review?(mconnor)
| Assignee | ||
Comment 4•19 years ago
|
||
Comment on attachment 189998 [details] [diff] [review] Merge with trunk We should be checking if we are selected on destruction and if so, clear selection.
Attachment #189998 -
Attachment is obsolete: true
Attachment #189998 -
Flags: first-review?(mconnor)
| Reporter | ||
Updated•19 years ago
|
Assignee: aaronleventhal → doronr
Status: ASSIGNED → NEW
| Assignee | ||
Comment 5•19 years ago
|
||
This patches download manager to set focus back and all, since doing it from inside richlistbox was really hacky (checking if selection broke each time somethign was added just sounds wrong). Sadley there is no way to be notified when the template gets rebuilt.
Attachment #190062 -
Flags: first-review?(mconnor)
| Reporter | ||
Comment 6•19 years ago
|
||
(In reply to comment #5) > This patches download manager to set focus back and all, since doing it from > inside richlistbox was really hacky (checking if selection broke each time > somethign was added just sounds wrong). Yes but that fixed the base widget. We should always fix the base widget because people will use richlistbox for other things. We can't always be around to fix this kind of bug in each use of richlist box in extensions and with xulrunner.
| Assignee | ||
Comment 7•19 years ago
|
||
(In reply to comment #6) > (In reply to comment #5) > > This patches download manager to set focus back and all, since doing it from > > inside richlistbox was really hacky (checking if selection broke each time > > somethign was added just sounds wrong). > > Yes but that fixed the base widget. We should always fix the base widget because > people will use richlistbox for other things. We can't always be around to fix > this kind of bug in each use of richlist box in extensions and with xulrunner. I'd rather fix it in the users for now and research a better way. I'll talk to the rdf people about a way to listen to rebuilds of templates. mconnor probably needs to decide if the constructor thing is something we want to take
| Reporter | ||
Comment 8•19 years ago
|
||
Doron, we would still need the <constructor> for the part that fixed bug 300780. <constructor> + <![CDATA[ + var listBox = this.control; + if (!listBox.selectedItem) + listBox.goDown(); // Fix up initial focus as items are created I guess I'll put that in a separate patch for that bug.
Comment 9•19 years ago
|
||
Comment on attachment 190062 [details] [diff] [review] patch r+a=me with the bogus blank line removed.
Attachment #190062 -
Flags: first-review?(mconnor)
Attachment #190062 -
Flags: first-review+
Attachment #190062 -
Flags: approval1.8b4+
| Reporter | ||
Comment 10•19 years ago
|
||
Checked in for Doron. Checking in toolkit/content/widgets/richlistbox.xml; /cvsroot/mozilla/toolkit/content/widgets/richlistbox.xml,v <-- richlistbox.xml new revision: 1.11; previous revision: 1.10 done Checking in toolkit/mozapps/downloads/content/downloads.js; /cvsroot/mozilla/toolkit/mozapps/downloads/content/downloads.js,v <-- downloads.js new revision: 1.47; previous revision: 1.46 done
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 11•19 years ago
|
||
Actually I'm going to reopen this so that at some point we can get a general fix for richlistbox, instead of a workaround in the users of <richlistbox>.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
| Assignee | ||
Updated•8 years ago
|
Status: REOPENED → RESOLVED
Closed: 19 years ago → 8 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•