Skip to content
  • commit-queue@webkit.org's avatar
    [BlackBerry] When selecting an object, assign focus to new node instead of... · e919ebc9
    commit-queue@webkit.org authored
    [BlackBerry] When selecting an object, assign focus to new node instead of clearing previous focused node
    https://bugs.webkit.org/show_bug.cgi?id=112707
    
    Patch by Andy Chen <andchen@blackberry.com> on 2013-03-19
    Reviewed by Rob Buis.
    
    In SelectionHandler, when selecting a new object, we should set focus
    to the anchor node of selection instead of removing it from the old input.
    In InputHandler, when focusedNodeChanged is called, if the new node is
    not an Element node, we need to set focus to its Element parent node,
    instead of removing focus from the old node.
    PR 304631
    Internally reviewed by Mike Fenton.
    
    * WebKitSupport/InputHandler.cpp:
    (BlackBerry::WebKit::InputHandler::focusedNodeChanged):
    * WebKitSupport/SelectionHandler.cpp:
    (BlackBerry::WebKit::SelectionHandler::selectObject):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146226 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    e919ebc9