Closed Bug 1337830 Opened 8 years ago Closed 7 years ago

[DateTimeInput] Home/End keys change year values in the input box

Categories

(Core :: Layout: Form Controls, defect)

54 Branch
defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla55
Tracking Status
firefox54 --- wontfix
firefox55 --- verified

People

(Reporter: roxana.leitan, Assigned: jessica)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0
Build ID:20170208030203

[Affected versions]:
Nightly 54.0a1

[Affected platforms]:
All platforms: Ubuntu 16.04, Mac OS X 10.11, Windows 10

[Steps to reproduce]:
1.Launch Nightly 54.0a1 with a new profile
2.Set "dom.forms.datetime" and "dom.forms.datetime.timepicker" pref to True in about:config
3.In the URL bar enter "data:text/html, <input type="date">"
4.Press tab key to move focus on year segment
5.Press Home/End keys

[Expected result]:
Home/End keys should do nothing on year segment.

[Actual result]:
Home key changes year value to "0001" and End key changes to "275760"
Component: XUL Widgets → Layout: Form Controls
Product: Toolkit → Core
Summary: [DateTimePicker] Home/End keys change year values in the input box → [DateTimeInput] Home/End keys change year values in the input box
Assignee: nobody → jjong
Hi mossop, could you take a look at this small change to meet the UX spec? Thanks.
Comment on attachment 8869333 [details]
Bug 1337830 - [DateTimeInput] Home/End keys should have no effect on year field.

https://reviewboard.mozilla.org/r/140890/#review144672
Attachment #8869333 - Flags: review?(dtownsend) → review+
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/b6be024548cd
[DateTimeInput] Home/End keys should have no effect on year field. r=mossop
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/b6be024548cd
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Mark 54 won't fix as this is late for Beta54.
Verified fixed on the latest Nightly 55.0a1 (2017-06-07) on Windows 10 x64, Ubuntu 16.04 x64 and Mac OS X 10.12.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: