When doing an unselect in a page, the focused node is kept focused but it does not get the keyboard input anymore and for text editable nodes there is no caret. This was happening because the focus is messed up when the selection does not include the focused node. This CL ensure the selection includes the focused node to work-around that issue.
When doing an unselect in a page, the focused node is kept focused but
it does not get the keyboard input anymore and for text editable
nodes there is no caret.
This was happening because the focus is messed up when the selection does
not include the focused node.
This CL ensure the selection includes the focused node to work-around that
issue.


BUG=21388
TEST=Open google.com, CTRL-F and search for something not in the page.
     ESC to close the find-box. The search field on the Google page
     should have focus and typing should work.
     Now focus a link in the page, do a find for some text not in the
     page. Press ESC. Pressing enter should trigger the link.

Review URL: http://codereview.chromium.org/342099

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@30999 0039d316-1c4b-4281-b951-d872f2087c98

adobe/chromium,adobe/chromium,ropik/chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,ropik/chromium,gavinp/chromium,adobe/chromium,adobe/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,gavinp/chromium,ropik/chromium,yitian134/chromium,ropik/chromium,ropik/chromium,gavinp/chromium,ropik/chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,yitian134/chromium,yitian134/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,adobe/chromium,ropik/chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,yitian134/chromium,ropik/chromium,adobe/chromium,gavinp/chromium,Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,adobe/chromium,yitian134/chromium,gavinp/chromium,adobe/chromium,ropik/chromium,Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,Crystalnix/house-of-life-chromium