Summary: | webkit clears the current selection when click the address bar or search box | ||
---|---|---|---|
Product: | WebKit | Reporter: | wxu <eagleinfly> |
Component: | HTML Editing | Assignee: | Nobody <webkit-unassigned> |
Status: | UNCONFIRMED --- | ||
Severity: | Normal | CC: | ap, sudarshan.cp |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Mac (Intel) | ||
OS: | OS X 10.5 |
Description
wxu
2010-01-10 04:57:35 PST
This behavior seems correct to me - a single window shouldn't have multiple selections. What I'm trying to do is embed the webkit in a desktop application(using wxwidgets), and then I added dialogs and other property editor to maintain the current selection(e.g. image, paragraph). If the user selected an image, I want to show an image editor beside the html view, then user can change the size or other style of the image. but if I click the editor(outside of the html view), then the current selection lost, what I expected is make the selection to be inactive, then I can got the selected element. is that make sense? thanks. I understood your requirement saying that after image selection, your going to invoke the image editor, for modifying the size/style of image, but one thing is that if your editor is part of same window handler where engine and UI interface handle the touch event,then touch co-ordinates send to engine for doing set Selection with respect to touch point, hence as Alexey Proskuryakov mentioned window shouldn't have multiple selections, so this an expected behavior,i think this is an invalid case. Suggestion is that make different touch handler for both the entity. |