diff options
Diffstat (limited to 'Source/WebCore/html/HTMLSelectElement.cpp')
-rw-r--r-- | Source/WebCore/html/HTMLSelectElement.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/WebCore/html/HTMLSelectElement.cpp b/Source/WebCore/html/HTMLSelectElement.cpp index 936b1d146..fc68f01a6 100644 --- a/Source/WebCore/html/HTMLSelectElement.cpp +++ b/Source/WebCore/html/HTMLSelectElement.cpp @@ -1314,6 +1314,10 @@ void HTMLSelectElement::listBoxDefaultEventHandler(Event* event) if (listIndex >= 0) { if (!disabled()) { if (m_multiple) { + // Only extend selection if there is something selected. + if (m_activeSelectionAnchorIndex < 0) + return; + setActiveSelectionEndIndex(listIndex); updateListBoxSelection(false); } else { |