Closed Bug 1184538 Opened 10 years ago Closed 1 month ago

[Ruleview] values are being autocompleted wrong when I press Shift+Up/Down while the cursor is placed in the middle of the rule value

Categories

(DevTools :: Inspector: Rules, defect, P2)

defect

Tracking

(firefox136 fixed)

RESOLVED FIXED
136 Branch
Tracking Status
firefox136 --- fixed

People

(Reporter: arni2033, Assigned: nchevobbe)

References

(Blocks 2 open bugs)

Details

Attachments

(2 files)

STR: 1. Open Inspector -> sidebar -> Rules tab 2. Create new rule "background: darkblue;" 3. Place cursor between "l" and "u" in "darkblue" 4. Press Shift+Up/Down 5. (optional) GoTo step 3 Result: Value is being autocompleted so I get "darkblueueueue". The same applies to rule names. Expectation: In this case Shift+Up/Down hotkeys should work just like Up/Down - to move cursor to the beginning/end of the value/rule
Status: UNCONFIRMED → NEW
Ever confirmed: true
Has STR: --- → yes
Component: Developer Tools: Inspector → Developer Tools: CSS Rules Inspector
Inspector bug triage, filter on CLIMBING SHOES.
Priority: -- → P2
Product: Firefox → DevTools
Severity: normal → S3
Summary: [Ruleview] rule vaules are being autocompleted Wrong when I press Shift+Up/Down while the cursor is placed in the middle of the rule value → [Ruleview] values are being autocompleted wrong when I press Shift+Up/Down while the cursor is placed in the middle of the rule value
Blocks: 1900305

Those were triggering specific issues as they do cause
characters to be selected in the input, which makes it
looks like a regular completion to the maybeSuggestCompletion
method. Other selecting combination (e.g. Shift+Right|Home)
didn't suffer from this because they're triggering a different
code path.
This adds a few test cases to make sure we're handling all those
as we should.

Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/925a7c634e8c [devtools] Shift+Up|Down should not trigger autocomplete in InplaceEditor. r=devtools-reviewers,jdescottes.
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/68aebe687205 [devtools] Shift+Up|Down should not trigger autocomplete in InplaceEditor. r=devtools-reviewers,jdescottes.
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch
Flags: needinfo?(nchevobbe)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: