[webkit-changes] [WebKit/WebKit] 24bc94: iOS: Fix gamepad detection when becoming firstResp...
Darryl Pogue
noreply at github.com
Wed May 22 07:49:32 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 24bc94ef702df472e0b0e75d7448090b147c1c84
https://github.com/WebKit/WebKit/commit/24bc94ef702df472e0b0e75d7448090b147c1c84
Author: Darryl Pogue <darryl at dpogue.ca>
Date: 2024-05-22 (Wed, 22 May 2024)
Changed paths:
M Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm
Log Message:
-----------
iOS: Fix gamepad detection when becoming firstResponder
https://bugs.webkit.org/show_bug.cgi?id=269292
Reviewed by Brady Eidson.
Gamepads were only detected at initial load of the page if the WKWebView
were marked as the firstResponder, rather than detecting when the
WKWebView becomes or resigns the firstResponder.
This aligns the behaviour with WKWebView on macOS.
* Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:
(-[WKContentView becomeFirstResponderForWebView]):
(-[WKContentView resignFirstResponderForWebView]):
Enable/disable checking for gamepads when the WKWebView becomes or
resigns firstResponder status.
Canonical link: https://commits.webkit.org/279124@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list