Index: Source/core/html/HTMLSelectElement.cpp |
diff --git a/Source/core/html/HTMLSelectElement.cpp b/Source/core/html/HTMLSelectElement.cpp |
index d8eb4c116e4683ed3e38761b208b55c339c7dacf..fc0ed11c04a0a07b99ba054a63ca4e0d4829c972 100644 |
--- a/Source/core/html/HTMLSelectElement.cpp |
+++ b/Source/core/html/HTMLSelectElement.cpp |
@@ -1225,7 +1225,7 @@ bool HTMLSelectElement::shouldOpenPopupForKeyPressEvent(KeyboardEvent *event) |
LayoutTheme& layoutTheme = LayoutTheme::theme(); |
int keyCode = event->keyCode(); |
- return ((layoutTheme.popsMenuBySpaceKey() && event->keyCode() == ' ') |
+ return ((layoutTheme.popsMenuBySpaceKey() && event->keyCode() == ' ' && !m_typeAhead.hasActiveSession(event)) |
|| (layoutTheme.popsMenuByReturnKey() && keyCode == '\r')); |
} |