Make WordPress Core

Opened 21 months ago

Closed 21 months ago

Last modified 3 months ago

#62109 closed enhancement (fixed)

Use numeric input for touch_time() fields

Reported by: sabernhardt's profile sabernhardt Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 6.7 Priority: normal
Severity: normal Version:
Component: Date/Time Keywords: has-patch
Focuses: administration Cc:

Description

Splitting from #61652

Mobile devices can open the full keyboard for datetime text fields when they only accept digits (day, year, hours, and minutes). The fields could indicate a numeric inputmode.

The touch_time() function is used in Comments, Quick Edit, and the Classic Editor.

Attachments (1)

full-keyboard-year-field.jpg (41.5 KB) - added by sabernhardt 21 months ago.
Fields such as Year for a comment date can open full keyboard (Android 11, Chrome 129)

Download all attachments as: .zip

Change History (7)

@sabernhardt
21 months ago

Fields such as Year for a comment date can open full keyboard (Android 11, Chrome 129)

This ticket was mentioned in PR #7432 on WordPress/wordpress-develop by @sabernhardt.


21 months ago
#1

  • Keywords has-patch added

Adds inputmode="numeric" for the Day, Year, Hour, and Minute fields.

Trac 62109

#2 @SergeyBiryukov
21 months ago

  • Milestone changed from Awaiting Review to 6.7

#3 @SergeyBiryukov
21 months ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 59114:

Date/Time: Use numeric input for touch_time() fields.

This aims to make it easier to enter digits in datetime text fields on mobile devices, instead of opening the full keyboard.

Follow-up to [43], [1506], [2998], [3648], [6078], [6989], [7285], [7338], [20168], [20217], [28730], [32945], [49283].

Props sabernhardt.
Fixes #62109.

@SergeyBiryukov commented on PR #7432:


21 months ago
#4

Thanks for the PR! Merged in r59114.

#5 @sabernhardt
20 months ago

I added props for edent and joedolson on [59114]. Their comments on #61652 led me to open this ticket, and I should have mentioned that earlier.

Last edited 20 months ago by sabernhardt (previous) (diff)

This ticket was mentioned in Slack in #core by audrasjb. View the logs.


3 months ago

Note: See TracTickets for help on using tickets.