[layout view] handle the key events correctly

RESOLVED FIXED in Firefox 15

Status

()

Firefox
Developer Tools: Inspector
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: paul, Unassigned)

Tracking

Trunk
Firefox 15
x86
All
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [fixed-in-fx-team])

Attachments

(1 attachment, 1 obsolete attachment)

Comment hidden (empty)
(Reporter)

Updated

5 years ago
Summary: [layout view] If the inspector is closed when the layout view is focused, the inspector keyboard shortcurts don't work anymore → [layout view] If the layout view is closed when it is focused, the inspector keyboard shortcurts don't work anymore
(Reporter)

Comment 1

5 years ago
Created attachment 622725 [details] [diff] [review]
patch v1
(Reporter)

Comment 2

5 years ago
Comment on attachment 622725 [details] [diff] [review]
patch v1

The goal of this patch is to forward the key events to the inspector.
Attachment #622725 - Flags: review?(dcamp)

Comment 3

5 years ago
Comment on attachment 622725 [details] [diff] [review]
patch v1

Review of attachment 622725 [details] [diff] [review]:
-----------------------------------------------------------------

Should the inspector just be attaching event handlers to the sidebar that handle bubbling events?
(Reporter)

Comment 4

5 years ago
(In reply to Dave Camp (:dcamp) from comment #3)
> Comment on attachment 622725 [details] [diff] [review]
> patch v1
> 
> Review of attachment 622725 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> Should the inspector just be attaching event handlers to the sidebar that
> handle bubbling events?

That would be the logic way to do it. I'll do that.
(Reporter)

Updated

5 years ago
Attachment #622725 - Flags: review?(dcamp)
(Reporter)

Comment 5

5 years ago
Actually, the more I think about it, the less I think we should support the arrow keys in the layout view.
(Reporter)

Updated

5 years ago
Summary: [layout view] If the layout view is closed when it is focused, the inspector keyboard shortcurts don't work anymore → [layout view] [layout view] handle the key events correctly
(Reporter)

Updated

5 years ago
Summary: [layout view] [layout view] handle the key events correctly → [layout view] handle the key events correctly
(Reporter)

Comment 6

5 years ago
Created attachment 623632 [details] [diff] [review]
patch v1.1
(Reporter)

Updated

5 years ago
Attachment #622725 - Attachment is obsolete: true
(Reporter)

Comment 7

5 years ago
Comment on attachment 623632 [details] [diff] [review]
patch v1.1

In this patch I just avoid any scroll operations in the iframe. I preventDefault() the key events. I didn't find any better way to do. Preventing the scroll events doesn't work. Any idea of how I can improve that?

The space key let the user toggle the view (when focused). Bug 747222 will introduce a more generic key shortcut.
(Reporter)

Comment 8

5 years ago
Comment on attachment 623632 [details] [diff] [review]
patch v1.1

and I'm fixing a type (focusring).
Attachment #623632 - Flags: review?(dcamp)
(Reporter)

Comment 9

5 years ago
s/type/typo :)

Updated

5 years ago
Attachment #623632 - Flags: review?(dcamp) → review+
(Reporter)

Comment 10

5 years ago
https://hg.mozilla.org/integration/fx-team/rev/d2e8c2ee67ae
Whiteboard: [fixed-in-fx-team]
https://hg.mozilla.org/mozilla-central/rev/d2e8c2ee67ae
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 15
You need to log in before you can comment on or make changes to this bug.