Bug 260866

Summary: Web pages can't detect when CMD+SHIFT+4 has stolen keyboard events
Product: WebKit Reporter: Mishiko <nnamper>
Component: UI EventsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: a_protyasha, ap, richard_robinson2, thorton, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: Safari 17   
Hardware: Mac (Apple Silicon)   
OS: macOS 13   
Attachments:
Description Flags
Screen recording of bug none

Description Mishiko 2023-08-29 10:00:23 PDT
Created attachment 467485 [details]
Screen recording of bug

URLs 
 - https://codepen.io/alexduloz/pen/nEQrQN?editors=1010
 - https://github.com/novnc/noVNC/issues/1799

1.Launch Safari
2.Opened given link: https://codepen.io/alexduloz/pen/nEQrQN?editors=1010
3.Press CMD+SHIFT+4 and take screenshot 
4.Observed key events(16+91) are still there after releasing the keys
Comment 2 Alexey Proskuryakov 2023-08-29 14:10:35 PDT
Could you please clarify if the issue is that key modifier state is wrong after the screenshot, or that webpages cannot detect screenshots? The former seems like a bug to me, but the latter seems desirable.
Comment 3 Mishiko 2023-08-30 02:18:05 PDT
The issue is that key modifier state is wrong after the screenshot.
Comment 4 Radar WebKit Bug Importer 2023-09-05 10:01:14 PDT
<rdar://problem/114989740>