Bug 193825

Summary: inputmode="decimal" on iOS 12.2 doesn't have a button for negative
Product: WebKit Reporter: Dayton Lowell <daytonlowell>
Component: FormsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: cdumez, karlcow, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: BrowserCompat, InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: iOS 12   
Attachments:
Description Flags
screenshot none

Description Dayton Lowell 2019-01-25 08:02:56 PST
iOS 12.2 added support for the decimal keyboard using the inputmode spec but the decimal keyboard has no way to enter a - for a negative decimal value.
Comment 1 Dayton Lowell 2019-01-25 08:04:25 PST
Created attachment 360115 [details]
screenshot
Comment 2 Radar WebKit Bug Importer 2019-01-25 09:19:28 PST
<rdar://problem/47551201>
Comment 3 Wenson Hsieh 2019-01-25 09:24:06 PST
Unfortunately, it doesn't look like UIKit supports a number pad UIKeyboardType with a minus key (hyphen)...

https://developer.apple.com/documentation/uikit/uikeyboardtype/uikeyboardtypenumbersandpunctuation?language=objc contains all the relevant keys, but it isn't a number pad :(
Comment 4 Karl Dubost 2023-09-12 15:37:15 PDT
to test this on an iOS device.

data:text/html,<input type="number" inputmode="decimal">