Closed
Bug 900430
Opened 11 years ago
Closed 11 years ago
Should be able to Tab complete and cycle through the completion suggestions in the markup view.
Categories
(DevTools :: Inspector, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 26
People
(Reporter: Optimizer, Assigned: Optimizer)
References
Details
Attachments
(1 file, 1 obsolete file)
5.96 KB,
patch
|
Optimizer
:
review+
|
Details | Diff | Splinter Review |
When editing the style attribute in markup view, you get CSS properties and values suggestions. The suggestions in the popup can be cycles throug husing up/down arrows, but you have to press right arrow to complete that property and keep typing. In rule view, it makes direct sense to press TAB key to complete the selected suggestino and move on to the next editor, but in markup view, you have to remain in the same editor . Currently, take the following example:
style="di|
where the cursor is '|' . The user will now have a popup giving the following suggestions : "direction" and "display". Now the user shold be able to press tab once to complete to "direction" and one more time to cycle to "display" without leaving the editor as he has to now write the value of the property "display".
Assignee | ||
Comment 1•11 years ago
|
||
Assignee: nobody → scrapmachines
Status: NEW → ASSIGNED
Attachment #786828 -
Flags: review?(mratcliffe)
Comment 2•11 years ago
|
||
Does this also work when adding mulotiple attributes in the markup view?
Say you have the following attribute:
style="display:none;"
Well, you can edit display:none and change it to:
display:none;" collapsed="true"
So do the suggestions work when adding new attributes in this way?
Assignee | ||
Comment 3•11 years ago
|
||
(In reply to Michael Ratcliffe [:miker] [:mratcliffe] from comment #2)
> Does this also work when adding mulotiple attributes in the markup view?
>
> Say you have the following attribute:
> style="display:none;"
>
> Well, you can edit display:none and change it to:
> display:none;" collapsed="true"
>
> So do the suggestions work when adding new attributes in this way?
If by work you mean "Should not show suggestion when cursor is in the collapsed=\"true\" area", then no. It still shows suggestions. I should probably fix that in a followup. I tested for
display: none" foobar
and
display: none " foobar "
which does not create a new attribute, forgot to test something like
display: none " foobar = " "
Comment 4•11 years ago
|
||
Comment on attachment 786828 [details] [diff] [review]
patch v0.1
Review of attachment 786828 [details] [diff] [review]:
-----------------------------------------------------------------
(In reply to Girish Sharma [:Optimizer] from comment #3)
> (In reply to Michael Ratcliffe [:miker] [:mratcliffe] from comment #2)
> > Does this also work when adding mulotiple attributes in the markup view?
> >
> > Say you have the following attribute:
> > style="display:none;"
> >
> > Well, you can edit display:none and change it to:
> > display:none;" collapsed="true"
> >
> > So do the suggestions work when adding new attributes in this way?
>
> If by work you mean "Should not show suggestion when cursor is in the
> collapsed=\"true\" area", then no. It still shows suggestions. I should
> probably fix that in a followup. I tested for
>
> display: none" foobar
>
> and
>
> display: none " foobar "
>
> which does not create a new attribute, forgot to test something like
>
> display: none " foobar = " "
In that case please log a follow up bug so that it will work in that situation.
Attachment #786828 -
Flags: review?(mratcliffe) → review+
Assignee | ||
Comment 5•11 years ago
|
||
(In reply to Michael Ratcliffe [:miker] [:mratcliffe] from comment #4)
> In that case please log a follow up bug so that it will work in that
> situation.
The desired behavior is to not show suggestions in this case, right ?
Assignee | ||
Comment 6•11 years ago
|
||
Some failures: https://tbpl.mozilla.org/?tree=Try&rev=2cc8027604dd trying to see why they are happening.
Assignee | ||
Comment 7•11 years ago
|
||
Rebased on latest fx-team.
multiple green trys :
https://tbpl.mozilla.org/?tree=Try&rev=51663149477a
https://tbpl.mozilla.org/?tree=Try&rev=a8af567e17aa
Attachment #786828 -
Attachment is obsolete: true
Attachment #805011 -
Flags: review+
Assignee | ||
Comment 8•11 years ago
|
||
landed in fx-team: https://hg.mozilla.org/integration/fx-team/rev/ab2036982463
Whiteboard: [fixed-in-fx-team]
Assignee | ||
Comment 9•11 years ago
|
||
(In reply to Michael Ratcliffe [:miker] [:mratcliffe] from comment #4)
> In that case please log a follow up bug so that it will work in that
> situation.
filed bug 916582
Comment 10•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 26
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•