Closed
Bug 300779
Opened 20 years ago
Closed 20 years ago
Support multiple selection for xul:tree
Categories
(Core :: Disability Access APIs, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: aaronlev, Assigned: aaronlev)
Details
(Keywords: access)
Attachments
(4 files, 3 obsolete files)
2.25 KB,
patch
|
neil
:
review+
neil
:
superreview+
benjamin
:
approval1.8b4+
|
Details | Diff | Splinter Review |
11.10 KB,
patch
|
Details | Diff | Splinter Review | |
12.00 KB,
patch
|
aaronlev
:
review+
roc
:
superreview+
mkaply
:
approval1.8b4+
|
Details | Diff | Splinter Review |
6.63 KB,
patch
|
timeless
:
review+
roc
:
superreview+
|
Details | Diff | Splinter Review |
We need to support EVENT_SELECTION_WITHIN/ADD/REMOVE for XUL tree widgets.
Assignee | ||
Comment 1•20 years ago
|
||
Assignee | ||
Comment 2•20 years ago
|
||
Assignee | ||
Updated•20 years ago
|
Attachment #189427 -
Attachment is obsolete: true
Attachment #189428 -
Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #189428 -
Flags: review?(neil.parkwaycc.co.uk)
Comment 3•20 years ago
|
||
Comment on attachment 189428 [details] [diff] [review]
First part of fix -- make Ctrl+Space work correctly in a tree view -- it should always toggle the selection for multi select trees
1) On the Mac we suppport Command+Click (metaKey) to toggle a row.
2) I'm not sure that the space key needs to do anything in a single select
tree. This might simplify the code.
Assignee | ||
Comment 4•20 years ago
|
||
(In reply to comment #3)
> (From update of attachment 189428 [details] [diff] [review] [edit])
> 1) On the Mac we suppport Command+Click (metaKey) to toggle a row.
How might that affect this patch? I'm only modifying keypress behavior, not
click behavior.
> 2) I'm not sure that the space key needs to do anything in a single select
> tree. This might simplify the code.
It doesn't. Okay I'll fix that.
Comment 5•20 years ago
|
||
(In reply to comment #4)
>I'm only modifying keypress behavior, not click behavior.
Ah, but if you're modifying Ctrl+Space to match Ctrl+Click, wouldn't
it be more consistent to make Command+Space match Command+Click too?
Assignee | ||
Comment 6•20 years ago
|
||
- Unfortunately assuming space does nothing on a single line didn't simplify
the logic.
- I decided to skip doing something for cmd+space on mac because it doesn't
look like we support that for HTML listbox either. In fact, I don't even know
whether cmd+space is correct yet. I also don't know if we support cmd+click for
listbox. A bug spinnoff should be filed on finding out and then doing the
right thing cmd+click/cmd+space for multiselect widgets on mac.
Attachment #189428 -
Attachment is obsolete: true
Attachment #189992 -
Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #189992 -
Flags: review?(neil.parkwaycc.co.uk)
Assignee | ||
Comment 7•20 years ago
|
||
Comment on attachment 189428 [details] [diff] [review]
First part of fix -- make Ctrl+Space work correctly in a tree view -- it should always toggle the selection for multi select trees
This was the older patch. The newer one should get the review.
Attachment #189428 -
Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #189428 -
Flags: review?(neil.parkwaycc.co.uk)
Comment 8•20 years ago
|
||
Comment on attachment 189992 [details] [diff] [review]
Assume that space does nothing in single select
Would it be worthwhile moving the selection.single test to the previous if() so
that we can use spaces for key navigation in single select trees?
Assignee | ||
Comment 9•20 years ago
|
||
Neil, I thought about that. I suppose we can do that. Want a new patch?
Comment 10•20 years ago
|
||
If you agree to the change, then a new patch would avoid confusion.
Assignee | ||
Updated•20 years ago
|
Attachment #189992 -
Attachment is obsolete: true
Attachment #189992 -
Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #189992 -
Flags: review?(neil.parkwaycc.co.uk)
Assignee | ||
Comment 11•20 years ago
|
||
Attachment #190030 -
Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #190030 -
Flags: review?(neil.parkwaycc.co.uk)
Comment 12•20 years ago
|
||
Comment on attachment 190030 [details] [diff] [review]
Allow space to be used for inc search in single select
In the File Bookmark dialog typing "New " now prefers "New Folder" over "Newer
Folder", while in bookmarks manager Ctrl+Space toggles the current item.
Attachment #190030 -
Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #190030 -
Flags: superreview+
Attachment #190030 -
Flags: review?(neil.parkwaycc.co.uk)
Attachment #190030 -
Flags: review+
Assignee | ||
Updated•20 years ago
|
Attachment #190030 -
Flags: approval-l10n?
Assignee | ||
Updated•20 years ago
|
Attachment #190030 -
Flags: approval-l10n? → approval1.8b4?
Updated•20 years ago
|
Attachment #190030 -
Flags: approval1.8b4? → approval1.8b4+
Assignee | ||
Comment 13•20 years ago
|
||
Keeping open for accessibility API work.
Checking in toolkit/content/widgets/tree.xml;
/cvsroot/mozilla/toolkit/content/widgets/tree.xml,v <-- tree.xml
new revision: 1.18; previous revision: 1.17
done
Checking in xpfe/global/resources/content/bindings/tree.xml;
/cvsroot/mozilla/xpfe/global/resources/content/bindings/tree.xml,v <-- tree.xml
new revision: 1.47; previous revision: 1.46
done
Assignee | ||
Comment 14•20 years ago
|
||
Checking in tabbox.xml;
/cvsroot/mozilla/toolkit/content/widgets/tabbox.xml,v <-- tabbox.xml
new revision: 1.27; previous revision: 1.26
done
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•20 years ago
|
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 15•20 years ago
|
||
I had marked the wrong bug.
Assignee | ||
Comment 16•20 years ago
|
||
Attachment #190462 -
Flags: superreview?(bzbarsky)
Attachment #190462 -
Flags: review?(bzbarsky)
Comment 17•20 years ago
|
||
I'm not going to be able to get to this in the foreseeable future.
Assignee | ||
Updated•20 years ago
|
Attachment #190462 -
Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #190462 -
Flags: superreview?(bzbarsky)
Attachment #190462 -
Flags: review?(neil.parkwaycc.co.uk)
Attachment #190462 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 18•20 years ago
|
||
Comment on attachment 190462 [details] [diff] [review]
Finish work for tree view. Now deal with accessibility API event support.
Will use a PLEvent for safety.
Attachment #190462 -
Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #190462 -
Flags: review?(neil.parkwaycc.co.uk)
Assignee | ||
Comment 19•20 years ago
|
||
Attachment #190476 -
Flags: superreview?(bryner)
Attachment #190476 -
Flags: review?(timeless)
Assignee | ||
Updated•20 years ago
|
Attachment #190476 -
Flags: superreview?(bryner) → superreview?(roc)
Attachment #190476 -
Flags: superreview?(roc) → superreview+
Assignee | ||
Comment 20•20 years ago
|
||
Comment on attachment 190476 [details] [diff] [review]
Expose via a11y events. We don't need DOMItemSelected after all, they aren't fired for tree. We'll go off of "select" DOM events later for the add/remove a11y events.
r=timeless from IRC
Attachment #190476 -
Flags: review?(timeless) → review+
Assignee | ||
Updated•20 years ago
|
Attachment #190476 -
Flags: approval1.8b4?
Comment 21•20 years ago
|
||
Comment on attachment 190476 [details] [diff] [review]
Expose via a11y events. We don't need DOMItemSelected after all, they aren't fired for tree. We'll go off of "select" DOM events later for the add/remove a11y events.
a=mkaply
Attachment #190476 -
Flags: approval1.8b4? → approval1.8b4+
Assignee | ||
Comment 22•20 years ago
|
||
Attachment #190592 -
Flags: superreview?(roc)
Attachment #190592 -
Flags: review?(timeless)
Comment 23•20 years ago
|
||
Comment on attachment 190592 [details] [diff] [review]
Missing files that still need review. Implementation of nsPLDOMEvent
change "safe time"
perhaps: stable/consistent DOM
Attachment #190592 -
Flags: review?(timeless) → review+
Updated•20 years ago
|
Flags: blocking1.8b4+
Comment on attachment 190592 [details] [diff] [review]
Missing files that still need review. Implementation of nsPLDOMEvent
+ mEventNode->GetOwnerDocument(getter_AddRefs(domDoc));
Please nullcheck domDoc.
+static void PR_CALLBACK HandlePLDOMEvent(nsPLDOMEvent* aEvent)
+{
+ aEvent->HandleEvent();
+}
+
+static void PR_CALLBACK DestroyPLDOMEvent(nsPLDOMEvent* aEvent)
+{
+ delete aEvent;
+}
These should be in the .cpp file, not in the .h file.
Attachment #190592 -
Flags: superreview?(roc) → superreview+
Assignee | ||
Comment 25•20 years ago
|
||
Checking in accessible/src/base/nsRootAccessible.cpp;
/cvsroot/mozilla/accessible/src/base/nsRootAccessible.cpp,v <--
nsRootAccessible.cpp
new revision: 1.127; previous revision: 1.126
done
Checking in accessible/src/xul/nsXULTreeAccessible.cpp;
/cvsroot/mozilla/accessible/src/xul/nsXULTreeAccessible.cpp,v <--
nsXULTreeAccessible.cpp
new revision: 1.33; previous revision: 1.32
done
Checking in accessible/src/xul/nsXULTreeAccessible.h;
/cvsroot/mozilla/accessible/src/xul/nsXULTreeAccessible.h,v <--
nsXULTreeAccessible.h
new revision: 1.17; previous revision: 1.16
done
Checking in content/events/public/Makefile.in;
/cvsroot/mozilla/content/events/public/Makefile.in,v <-- Makefile.in
new revision: 1.11; previous revision: 1.10
done
RCS file: /cvsroot/mozilla/content/events/public/nsPLDOMEvent.h,v
done
Checking in content/events/public/nsPLDOMEvent.h;
/cvsroot/mozilla/content/events/public/nsPLDOMEvent.h,v <-- nsPLDOMEvent.h
initial revision: 1.1
done
Checking in content/events/src/Makefile.in;
/cvsroot/mozilla/content/events/src/Makefile.in,v <-- Makefile.in
new revision: 1.53; previous revision: 1.52
done
RCS file: /cvsroot/mozilla/content/events/src/nsPLDOMEvent.cpp,v
done
Checking in content/events/src/nsPLDOMEvent.cpp;
/cvsroot/mozilla/content/events/src/nsPLDOMEvent.cpp,v <-- nsPLDOMEvent.cpp
initial revision: 1.1
done
Checking in layout/xul/base/src/tree/src/nsTreeSelection.cpp;
/cvsroot/mozilla/layout/xul/base/src/tree/src/nsTreeSelection.cpp,v <--
nsTreeSelection.cpp
new revision: 1.47; previous revision: 1.46
done
Status: REOPENED → RESOLVED
Closed: 20 years ago → 20 years ago
Resolution: --- → FIXED
Comment 26•20 years ago
|
||
Is there a reason nsPLDOMEvent::PostDOMEvent doesn't just do cleanup itself?
That would make it a lot simpler to use....
Also, is there a reason this code doesn't follow the content/ style conventions?
Finally, is there a reason the nsPLDOMEvent class can only be used for some
types of events? I would have preferred something that could be used for any
DOM event content wants to fire...
Assignee | ||
Comment 27•20 years ago
|
||
(In reply to comment #26)
> Is there a reason nsPLDOMEvent::PostDOMEvent doesn't just do cleanup itself?
> That would make it a lot simpler to use....
>
> Also, is there a reason this code doesn't follow the content/ style conventions?
>
> Finally, is there a reason the nsPLDOMEvent class can only be used for some
> types of events? I would have preferred something that could be used for any
> DOM event content wants to fire...
I think it should evolve into a user-friendly general class for doing this.
That's the idea. If there's an optimization or simplification I missed then
let's just fix that.
What style convention did I miss?
Comment 28•20 years ago
|
||
returnType
classname::methodname(args)
{
(three separate lines there).
Comment 29•6 years ago
|
||
Keywords: sec508
You need to log in
before you can comment on or make changes to this bug.
Description
•