Bug 247374

Summary: IME keyboard does not work with manually focused input
Product: WebKit Reporter: Sean Perkins <sean>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: hhjalmarsson, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: Safari 16   
Hardware: iPhone / iPad   
OS: iOS 16   

Description Sean Perkins 2022-11-02 12:46:41 PDT
When manually focusing an input element with an IME active, the keyboard remains visible, but additional inputs to the keyboard do not register with the focused element.

Steps to reproduce:

1. Enable an additional IME on your iPhone (e.g. Enable Japanese - Romanji keyboard)
2. Visit: https://codepen.io/sean-perkins/pen/PoaNJov on Mobile Safari
3. Tap the focus the input and present the keyboard
4. Tap to change the keyboard to the alternate IME (e.g.: Japanese - Romanji)
5. Type with the keyboard
6. Observe: Keyboard input is registered in the form control
7. Click "Clear" button" with the keyboard open
8. Observe: Input is cleared, focus cursor indicates input is still active/focused
9. Type with the keyboard
10. Observe: Keyboard input is not registered in the form control

User interaction to blur and focus the input will result in the keyboard input being registered in the form control. 

Expected: When using an IME and manually focusing an input element, the keyboard should continue to register changes with the focused element.
Comment 1 Radar WebKit Bug Importer 2022-12-08 12:35:14 PST
<rdar://problem/103141758>
Comment 2 Robert Jenner 2023-01-31 15:50:17 PST
*** Bug 247073 has been marked as a duplicate of this bug. ***