Bug 199137

Summary: [iOS] Key code is 0 on keyup of locale-specific punctuation typed using software keyboard
Product: WebKit Reporter: Daniel Bates <dbates>
Component: WebCore Misc.Assignee: Daniel Bates <dbates>
Status: ASSIGNED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar, PlatformOnly
Version: WebKit Local Build   
Hardware: iPhone / iPad   
OS: iOS 12   
Bug Depends on:    
Bug Blocks: 190571    

Daniel Bates
Reported 2019-06-23 14:32:37 PDT
Steps to reproduce: 1. Visit <https://unixpapa.com/js/testkey.html> 2. Focus the textarea. 3. Switch to Pinyin keyboard (note: effects other keyboard layouts as well). 4. Type 。(it's on the key in the same position as the .? key in US keyboard layout). Then keyup has 0 for keyCode. But it should be key code for the . on US keyboard layout. Other locale-specific punctuation is also affected.
Attachments
Radar WebKit Bug Importer
Comment 1 2019-06-23 14:32:50 PDT
Daniel Bates
Comment 2 2019-07-05 10:13:05 PDT
Just for reference, Microsoft Edge 42.17134.1.0 only emits a keydown with key code 229 (composition key code) for 。 ^^^ Edge is even more broken.
Daniel Bates
Comment 3 2019-08-17 09:35:12 PDT
As the title saids, this bug only affects the software keyboard. This problem may be intractable to solve for all non-US layouts. The problem is that the layout of the software keyboard may ***not*** correspond to any known hardware keyboard layout.
Note You need to log in before you can comment on or make changes to this bug.