Repository navigation
Google Docs: Typing in "Hindi - InScript" can result in an unexpected beep - #65534
Conversation
|
EWS run on previous version of this PR (hash 49fb203) Details |
| } | ||
|
|
||
| RetainPtr webView = adoptNS([[TestWebViewWithMockTextInputContext alloc] initWithFrame:NSMakeRect(0, 0, 400, 400) configuration:configuration.get()]); | ||
| // WebViewImpl::doneWithKeyEvent issues when eventWasHandled=false — meaning |
There was a problem hiding this comment.
Nit - I wonder if we should avoid referencing specific implementation method names from API tests; it seems like it might be easy for these to fall out of sync, in the case where doneWithKeyEvent is renamed.
There was a problem hiding this comment.
Yeah, Claude likes to add these lengthy comments. I've got rid of this comment, and shortened the comment below to just this:
The Hindi InScript "/" keystroke goes through the partial-prefix path: the input method commits the marked virama via insertText:"\u094D" and the layout pass appends insertText:"\u092F". We need to prevent NSEvent from bubbling up to [NSApp sendEvent:] which beeps.
49fb203 to
ca36bcd
Compare
|
EWS run on current version of this PR (hash ca36bcd) Details |
… beep https://bugs.webkit.org/show_bug.cgi?id=315421 rdar://177643899 Reviewed by Wenson Hsieh. The bug was caused by the missing check for defaultPrevented and defaultHandled for keypress event when we take an early exit. Test: TestWebKitAPI.WKWebViewMacEditingTests.HindiInScriptViramaConjunctReportsKeystrokeHandled * Source/WebCore/page/EventHandler.cpp: (WebCore::EventHandler::internalKeyEvent): * Tools/TestWebKitAPI/Tests/WebKit/WKWebView/mac/WKWebViewMacEditingTests.mm: (-[KeyableBorderlessWindow canBecomeKeyWindow]): (-[KeyableBorderlessWindow unhandledKeyDownCount]): (-[KeyableBorderlessWindow noResponderFor:]): (TestWebKitAPI::TEST(WKWebViewMacEditingTests, HindiInScriptViramaConjunctReportsKeystrokeHandled)): Canonical link: https://commits.webkit.org/313813@main
ca36bcd to
abcaf42
Compare
|
Committed 313813@main (abcaf42): https://commits.webkit.org/313813@main Reviewed commits have been landed. Closing PR #65534 and removing active labels. |
🧪 gtk-wk2
🛠 vision-sim
abcaf42
ca36bcd