summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorGustavo Noronha Silva <gustavo.noronha@collabora.com>2013-03-25 19:49:06 (GMT)
committerGustavo Noronha Silva <gustavo.noronha@collabora.com>2013-03-27 19:42:36 (GMT)
commit2fb836a1dc9c5f91e55f755e9acdf3c0b792d0df (patch)
treebbd27c6cc223fb4f2a408604df1bacd8d22cecd5 /Source
parent7bebc62cecf3a0f4c8cb4e65cd3cc23d2f005ed5 (diff)
downloadwebkit-clutter-2fb836a1dc9c5f91e55f755e9acdf3c0b792d0df.tar.gz
webkit-clutter-2fb836a1dc9c5f91e55f755e9acdf3c0b792d0df.tar.xz
Close the <select> combo box on blur
Diffstat (limited to 'Source')
-rw-r--r--Source/WebCore/html/HTMLSelectElement.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/WebCore/html/HTMLSelectElement.cpp b/Source/WebCore/html/HTMLSelectElement.cpp
index 4787f3e..a175ecc 100644
--- a/Source/WebCore/html/HTMLSelectElement.cpp
+++ b/Source/WebCore/html/HTMLSelectElement.cpp
@@ -1222,6 +1222,13 @@ void HTMLSelectElement::menuListDefaultEventHandler(Event* event)
}
event->setDefaultHandled();
}
+
+ if (event->type() == eventNames().blurEvent) {
+ if (RenderMenuList* menuList = toRenderMenuList(renderer())) {
+ if (menuList->popupIsVisible())
+ menuList->hidePopup();
+ }
+ }
}
void HTMLSelectElement::updateSelectedState(int listIndex, bool multi, bool shift)