Bug 86925

Summary: [GTK] REGRESSION(r116135): Keys that confirm composition trigger a default action
Product: WebKit Reporter: Martin Robinson <mrobinson>
Component: WebKitGTKAssignee: Martin Robinson <mrobinson>
Status: RESOLVED FIXED    
Severity: Normal CC: gustavo
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch gustavo: review+

Description Martin Robinson 2012-05-18 16:52:16 PDT
When completing a composition with a key press it triggers the default action. An example of this is finish a compose sequence with space bar causing the page to scroll.
Comment 1 Martin Robinson 2012-05-19 10:20:16 PDT
Created attachment 142873 [details]
Patch
Comment 2 Gustavo Noronha (kov) 2012-05-21 12:17:33 PDT
Comment on attachment 142873 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=142873&action=review

Thanks =)

> Source/WebCore/ChangeLog:13
> +        * platform/gtk/CompositionResults.h: Instead of holding composition results, just hold
> +        hold a flag describing whether or not this event had results.

too much hold

> Source/WebKit/gtk/WebCoreSupport/WebViewInputMethodFilter.cpp:63
> +    PlatformKeyboardEvent platformEvent(event, CompositionResults(CompositionResults::WillSendCompositionResultsSoon));

Nice trick to make the code more readable =)
Comment 3 Martin Robinson 2012-05-22 11:36:44 PDT
Committed r118010: <http://trac.webkit.org/changeset/118010>