Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 939ce9ebdf62f6aa8bb8b650ce59181b997e7a89 https://github.com/WebKit/WebKit/commit/939ce9ebdf62f6aa8bb8b650ce59181b997e7a89 Author: Abrar Rahman Protyasha <a_protya...@apple.com> Date: 2024-07-15 (Mon, 15 Jul 2024)
Changed paths: M Source/WTF/wtf/PlatformHave.h M Source/WebKit/Platform/spi/ios/UIKitSPI.h M Source/WebKit/UIProcess/ios/WKContentView.mm Log Message: ----------- [iPadOS] Unable to keyboard scroll until interacting with a webpage https://bugs.webkit.org/show_bug.cgi?id=276640 rdar://130439406 Reviewed by Wenson Hsieh. Since WKContentView conforms to UIKeyInput, the focus system treats it as a text field and defers making it the focused item. This causes the undesirable effect of having to interact with the webpage before keyboard scroll takes effect. Instead, in this PR, we opt out of focus deferral. This maintains our existing behavior of immediately gain focus. We achieve this by returning UIFocusItemDeferralModeNever for WKContentView's focus item deferral mode. * Source/WTF/wtf/PlatformHave.h: * Source/WebKit/Platform/spi/ios/UIKitSPI.h: * Source/WebKit/UIProcess/ios/WKContentView.mm: (-[WKContentView focusItemDeferralMode]): Canonical link: https://commits.webkit.org/281001@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes