Bug 115055

Summary: [BlackBerry] Do not clear focus on a node when tapping on form controls
Product: WebKit Reporter: Nima Ghanavatian <nghanavatian>
Component: WebKit BlackBerryAssignee: Nima Ghanavatian <nghanavatian>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch none

Description Nima Ghanavatian 2013-04-23 13:53:08 PDT
For rich text editors to work correctly, we must maintain focus on an input field and allow for mouse presses to trigger on buttons/form controls. This allows us to pass styles down to the text in the field, whether it is highlighted or will be entered after.
Comment 1 Nima Ghanavatian 2013-04-23 13:58:08 PDT
Created attachment 199323 [details]
Patch
Comment 2 Rob Buis 2013-04-24 08:33:03 PDT
Comment on attachment 199323 [details]
Patch

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

Looks good, but please fix the ChangeLog before landing.

> Source/WebKit/blackberry/ChangeLog:12
> +        or highlighted text, we must maintain focus the current focus

I don't get the "focus the current focus" part.

> Source/WebKit/blackberry/ChangeLog:14
> +        context to trigger off of TouchHold instead of TouchPress.

I think you do not want the first 'of' there.
Comment 3 Nima Ghanavatian 2013-04-24 08:46:58 PDT
Created attachment 199489 [details]
Patch
Comment 4 Rob Buis 2013-04-24 08:48:45 PDT
Comment on attachment 199489 [details]
Patch

LGTM.
Comment 5 WebKit Commit Bot 2013-04-24 08:58:46 PDT
Comment on attachment 199489 [details]
Patch

Clearing flags on attachment: 199489

Committed r149043: <http://trac.webkit.org/changeset/149043>
Comment 6 WebKit Commit Bot 2013-04-24 08:58:47 PDT
All reviewed patches have been landed.  Closing bug.