Make WordPress Core

Opened 2 years ago

Closed 2 years ago

Last modified 7 months ago

#62109 closed enhancement (fixed)

Use numeric input for touch_time() fields

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

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 2 years 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
2 years 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.


2 years ago
#1

  • Keywords has-patch added

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

Trac 62109

#2 @SergeyBiryukov
2 years ago

  • Milestone Awaiting Review → 6.7

#3 @SergeyBiryukov
2 years ago

  • Owner set to SergeyBiryukov
  • Resolution → fixed
  • Status new → 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:


2 years ago
#4

Thanks for the PR! Merged in r59114.

#5 @sabernhardt
2 years ago

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

Version 0, edited 2 years ago by sabernhardt (next)

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


7 months ago

Note: See TracTickets for help on using tickets.