Open Bug 1189983 Opened 5 years ago Updated 2 years ago

[ruleview] Pressing Function keys (e.g. F4) several times when typing rule name results in wrong rule name

Categories

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

defect

Tracking

(firefox42 affected)

Tracking Status
firefox42 --- affected

People

(Reporter: arni2033, Unassigned)

Details

STR:
1. Open devtools->Inspector->ruleview
2. Click "element { }" box
3. Press F4 three times

RESULT:
I got "-moz-animation-moz-animation-moz-animation" as rule name

EXPECTATIONS:
Second and third times I press F4 nothing happens, because autocomplete popup is already visible
Comment https://bugzilla.mozilla.org/show_bug.cgi?id=1192172#c5 on bug 1192172 has revealed to me that the same happens with almost any Function key, not only F4.
I was confused about F4 because it should hide/unhide popup lists (as in location bar and searchbar)

Now it's clear that I can reproduce this bug with the following shortcuts (in Step 3 instead of F4):
        F1, F2,     F4,         F7, F8, F9, F10, F11
Shift + F1, F2,     F4, F5, F6, F7, F8, F9, F10, F11, F12

Most of that hotkeys should just be cancelled in ruleview, because they already do special actions.
Summary: [ruleview] Pressing F4 several times when typing rule name results in wrong rule name → [ruleview] Pressing Function keys (e.g. F4) several times when typing rule name results in wrong rule name
Component: Developer Tools: Inspector → Developer Tools: CSS Rules Inspector
Inspector bug triage. Filter on CLIMBING SHOES.
Keypress events that have no impact on the input should not trigger the insertion of a value.
As suggested above, maybe F4 could close the suggestion list for consistency.
Priority: -- → P3
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.