document()->page()->chrome()->client()->elementDidFocus(this);
#if ENABLE(TIZEN_ISF_PORT)
+ if (this->shouldUseInputMethod() && document()->frame()
+ && document()->frame()->eventHandler()->mousePressed())
+ document()->frame()->editor()->client()->handleInputMethodMousePress();
+
if (!oldFocusedNode && this->shouldUseInputMethod() && document()->frame()) {
LOG(ISF, "%s oldFocusedNode(%s) node(%s)\n", __func__, oldFocusedNode ? oldFocusedNode->nodeName().utf8().data() : "0", this->nodeName().utf8().data());
document()->frame()->editor()->client()->setInputMethodState(true);
#include "HTMLPlugInElement.h"
#endif
-#if ENABLE(TIZEN_ISF_PORT)
-#include "EditorClient.h"
-#endif
-
namespace WebCore {
using namespace HTMLNames;
// if the page already set it (e.g., by canceling default behavior).
if (Page* page = m_frame->page()) {
if (node && node->isMouseFocusable()) {
-#if ENABLE(TIZEN_ISF_PORT)
- if (node && node->shouldUseInputMethod())
- m_frame->editor()->client()->handleInputMethodMousePress();
-#endif
if (!page->focusController()->setFocusedNode(node, m_frame))
swallowEvent = true;
} else if (!node || !node->focused()) {
#if ENABLE(TIZEN_WEBKIT_PASTEBOARD)
&& m_page->selection().selectionType() != VisibleSelection::RangeSelection
#endif // ENABLE(TIZEN_WEBKIT_PASTEBOARD)
- )
+ ) {
+ m_page->editorClient()->handleInputMethodMousePress();
m_page->editorClient()->setInputMethodState(node->shouldUseInputMethod());
+ }
return true;
}
#else