Open Bug 1208928 Opened 6 years ago Updated 5 years ago

Ctrl+Click doesn't press <input type="number">'s spin-up/down buttons even though they look depressed

Categories

(Core :: Layout: Form Controls, defect)

defect
Not set
normal

Tracking

()

Tracking Status
firefox44 --- affected

People

(Reporter: arni2033, Unassigned)

References

()

Details

STR:   (Win7_64, Nightly 44, 32bit, ID 20150926030216, new profile, safe mode)
1. Open the following "data:" url or click URL in the form above
>   data:text/html,<input type="number"/>
2. Ctrl+Click spin-up button

Result:       Button looks depressed, but nothing happens
Expectations: A) change input's value, or
              B) don't look depressed, but in this case there's no visible difference between
                 pressed and not-pressed button compared to simple click w/o Ctrl.

Note that currently those buttons don't look depressed when you simply click them.
Flags: needinfo?(jwatt)
This seems to be Windows only.

It's also pretty low priority, but basically the content code ignores clicks with most modifier keys:

https://mxr.mozilla.org/mozilla-central/source/dom/html/HTMLInputElement.cpp?rev=4d962ac45aee&mark=3966-3966#3963

Whereas the Windows native theming code only examines Element::State() (via nsNativeTheme::GetContentState):

https://mxr.mozilla.org/mozilla-central/source/widget/windows/nsNativeThemeWin.cpp?rev=94eb4bc018b4&mark=1189-1189#1185
Flags: needinfo?(jwatt)
Do you think I should file separate bug since those buttons DO look depressed
on (Ctrl/Alt/Shift)+Click, but don't look depressed on simple Click? That makes a very bad impression
No, this bug can cover all that.
See Also: → 1012818
You need to log in before you can comment on or make changes to this bug.