Bug 273681 - Virtual keyboard symbol toggle key unexpectedly emits Shift key events
Summary: Virtual keyboard symbol toggle key unexpectedly emits Shift key events
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: Safari 17
Hardware: iPhone / iPad iOS 17
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2024-05-03 06:00 PDT by Kimberly Grey
Modified: 2024-05-10 08:13 PDT (History)
6 users (show)

See Also:


Attachments
Shift key testing file (2.63 KB, text/html)
2024-05-03 06:00 PDT, Kimberly Grey
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kimberly Grey 2024-05-03 06:00:41 PDT
Created attachment 471266 [details]
Shift key testing file

When using the numbers and symbols virtual keyboard in iOS/iPadOS, pressing the key to toggle between the initial and extended symbols views emits Shift key events in JavaScript.

## Repro steps

1. Open the attached HTML file on a device running iOS or iPadOS.
2. Focus the text input field to display the virtual keyboard.
3. Enter numbers and symbols view on the virtual keyboard ('123' button on the bottom left on the English keyboard on iOS, '.?123' on iPadOS). 
4. Toggle between the initial and extended symbols view (initially the '#+=' button, the text changes to '123' in the extended view).
5. Observe the output log below the text input.

On iPads that display two toggle keys on the virtual keyboard, this issue exists for both keys.

Note that the attached file includes instructions for various testing scenarios, however, this bug report only concerns the symbol toggle key. 

## Expected result

Toggling the virtual keyboard view should not emit JavaScript events.

## Actual result

Toggling the virtual keyboard emits `keydown` and `keyup` events indicating that the Shift key is being pressed and released.

## Additional information

This has been reproduced on versions of iOS 16.4 through 17.4.
Comment 1 Radar WebKit Bug Importer 2024-05-10 06:01:19 PDT
<rdar://problem/127875741>