Closed Bug 1804869 Opened 2 years ago Closed 2 years ago

Ctrl + Home and Ctrl + End don't select the first day/last of the current month inside Datepicker Dialog Example

Categories

(Firefox :: Keyboard Navigation, defect)

Firefox 109
Desktop
Windows
defect

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox-esr102 --- disabled
firefox107 --- disabled
firefox108 --- disabled
firefox109 --- affected

People

(Reporter: epopescu, Unassigned, NeedInfo)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

Found in

  • Firefox Nightly 109.0a1

Affected versions

  • Firefox Nightly 109.0a1

Tested platforms

  • Affected platforms: Windows 10, Ubuntu 22.04
  • Unaffected platforms: macOS 13

Preconditions

  • Firefox Nightly installed

Steps to reproduce

  1. Go to https://www.w3.org/WAI/ARIA/apg/example-index/dialog-modal/datepicker-dialog.html
  2. Reach Calendar button(next to the date input field) by hitting TAB key
  3. Once the datepicker is open, hit Ctrl + Home and Ctrl + End

Expected result

  • Ctrl + Home and Ctrl + End should select the first day/last of the current month

Actual result

  • Ctrl + Home and Ctrl + End select the first day/last of the current week

Regression range

  • Not a regression because these improvements were recently implemented through Bug 1676068.
Severity: -- → S3
Has STR: --- → yes
OS: Unspecified → Windows
Hardware: Unspecified → Desktop
Version: Trunk → Firefox 109

:epopescu, if you think that's a regression, could you try to find a regression range using for example mozregression?

The date picker dialog on the https://www.w3.org/WAI/ARIA/apg/example-index/dialog-modal/datepicker-dialog.html page is a custom built component that does not use the datepicker widget provided by the Firefox for <input type=date> and <input type=datetime-local>. It relies on their custom code and it is attached to the <input type=text> with JavaScript. Plus they do not mention a Ctrl + Home and Ctrl + End shortcuts in the keyboard support breakdown and they use a disclosure: The code in this example is not intended for production environments..

In this case, the Firefox-provided date picker goes an extra mile allowing a user to get to the first/last day of the month via a shortcut and as long as the default date and datetime-local inputs (i.e. from data:text/html,<input type=date> and data:text/html,<input type=date>) provide a date picker with the expected properly working ctrl+home and ctrl+end behavior, it is not a Firefox bug, but the website's developer issue.

:dao, is it okay to close the bug as worksforme?

Flags: needinfo?(dao+bmo)

Just in case, confirmed that ctrl+home and ctrl+end work on the Firefox-provided datepicker dialog. Refer to the video recording from the Ubuntu 22.04.1 LTS.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: