[webkit-changes] [WebKit/WebKit] 939ce9: [iPadOS] Unable to keyboard scroll until interacti...

Abrar Rahman Protyasha noreply at github.com
Mon Jul 15 23:19:29 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 939ce9ebdf62f6aa8bb8b650ce59181b997e7a89
      https://github.com/WebKit/WebKit/commit/939ce9ebdf62f6aa8bb8b650ce59181b997e7a89
  Author: Abrar Rahman Protyasha <a_protyasha at 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


More information about the webkit-changes mailing list