Closed
Bug 700741
Opened 12 years ago
Closed 12 years ago
Add a scriptable way to know if an element is focusable
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla11
People
(Reporter: eeejay, Assigned: eeejay)
Details
Attachments
(1 file, 1 obsolete file)
1.39 KB,
patch
|
Details | Diff | Splinter Review |
It is useful for extensions to know if an element is focusable without experimenting or reinventing the logic in the platform code. For example the spatial navigation extension that was in mc until recently did a bad job at figuring out what was focusable[1]. 1. http://hg.mozilla.org/mozilla-central/file/fa82e3fa46b9/toolkit/spatial-navigation/SpatialNavigation.js
Assignee | ||
Updated•12 years ago
|
Attachment #572919 -
Flags: review?(jst)
Assignee | ||
Updated•12 years ago
|
OS: Linux → All
Hardware: x86_64 → All
Comment 1•12 years ago
|
||
Neil should probably review the patch.
Assignee | ||
Updated•12 years ago
|
Attachment #572919 -
Flags: review?(jst) → review?(enndeakin)
Comment 2•12 years ago
|
||
Comment on attachment 572919 [details] [diff] [review] Add and implement nsIFocusManager.elementIsFocusable >+ *rv = CheckIfFocusable(aContent, aFlags) != nsnull; >+ Change 'rv' to some other name (such as aIsFocusable). 'rv' is often used as an locally declared nsresult and I was momentarily confused by this.
Attachment #572919 -
Flags: review?(enndeakin) → review+
Assignee | ||
Comment 3•12 years ago
|
||
Changed variable name
Assignee: nobody → eitan
Attachment #572919 -
Attachment is obsolete: true
Assignee | ||
Updated•12 years ago
|
Whiteboard: checkin-needed
Comment 4•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/0b200d3bd408
Whiteboard: checkin-needed
Comment 5•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/0b200d3bd408
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla11
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•