Closed
Bug 719039
Opened 12 years ago
Closed 12 years ago
After the Highlighter was refactored, ESCAPE key closes Inspector when Tilt is open
Categories
(DevTools :: Inspector, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 12
People
(Reporter: vporof, Assigned: vporof)
References
Details
(Whiteboard: [tilt])
Attachments
(1 file, 3 obsolete files)
4.77 KB,
patch
|
rcampbell
:
review+
|
Details | Diff | Splinter Review |
Until now, the behavior was: Inspector open + ESCAPE pressed = Inspector closed Inspector open & Tilt open + ESCAPE pressed = only Tilt closed So currently, if Tilt is open and ESCAPE is pressed, we're not returning back to the Highlighter, but closing Inspector altogether. If this is the desired behavior, we can remove some redundant code from Tilt. However, I'm thinking it's not.
Assignee | ||
Updated•12 years ago
|
Whiteboard: [tilt]
Comment 1•12 years ago
|
||
You're right, this is a bug. We should go back to the initial behavior.
Assignee | ||
Comment 2•12 years ago
|
||
I'll take a look at this.
Assignee: nobody → vporof
Status: NEW → ASSIGNED
Assignee | ||
Comment 3•12 years ago
|
||
The only change worth looking at is in browser/devtools/highlighter/inspector.jsm. I added a currentInstance getter in Tilt to get the visualizer for the current tab.
Attachment #590184 -
Flags: feedback?(paul)
Assignee | ||
Comment 4•12 years ago
|
||
Using the bubbling trick. I left the currentInstance getter in there because it may be useful sometime!
Attachment #590188 -
Flags: feedback?(paul)
Comment 5•12 years ago
|
||
Comment on attachment 590188 [details] [diff] [review] v2 This approach sounds good. Not sure this is needed: + e.preventDefault(); Why don't you just use `code = e.keyCode` ?
Attachment #590188 -
Flags: feedback?(paul) → feedback+
Assignee | ||
Comment 6•12 years ago
|
||
Attachment #590184 -
Attachment is obsolete: true
Attachment #590184 -
Flags: feedback?(paul)
Attachment #590193 -
Flags: review?(rcampbell)
Attachment #590193 -
Flags: feedback?(paul)
Comment 7•12 years ago
|
||
Comment on attachment 590193 [details] [diff] [review] v3 + canvas.addEventListener("keypress", this.onKeyPress, false); should this be , true? Do we want capturing? e.g., Inspector is now using: this.highlighter.highlighterContainer.addEventListener("keypress", this.onKeypress, true); (line 367, InspectorUI). and for completeness, you probably want to use preventDefault() as well as stopPropagation().
Attachment #590193 -
Flags: review?(rcampbell)
Comment 8•12 years ago
|
||
ok, scratch that bit about needing preventDefault() it's redundant.
Assignee | ||
Comment 9•12 years ago
|
||
(In reply to Rob Campbell [:rc] (robcee) from comment #8) > ok, scratch that bit about needing preventDefault() it's redundant. But I wanna!
Assignee | ||
Comment 10•12 years ago
|
||
Attachment #590188 -
Attachment is obsolete: true
Attachment #590193 -
Attachment is obsolete: true
Attachment #590193 -
Flags: feedback?(paul)
Attachment #592273 -
Flags: review?(rcampbell)
Updated•12 years ago
|
Attachment #592273 -
Flags: review?(rcampbell) → review+
Updated•12 years ago
|
Whiteboard: [tilt] → [tilt][land-in-fx-team]
Comment 11•12 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/39afbd62c96e
Whiteboard: [tilt][land-in-fx-team] → [tilt][fixed-in-fx-team]
Comment 12•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/39afbd62c96e
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [tilt][fixed-in-fx-team] → [tilt]
Target Milestone: --- → Firefox 12
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•