Skip to content
  • commit-queue@webkit.org's avatar
    Cannot select multiple non-adjacent items in a multiple select control with the keyboard only · 8fb8a5c7
    commit-queue@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=15816
    
    Patch by Pascal Jacquemart <p.jacquemart@samsung.com> on 2014-01-09
    Reviewed by Chris Fleizach.
    
    Source/WebCore:
    
    Test: fast/forms/listbox-non-contiguous-keyboard-selection.html
    
    * html/HTMLSelectElement.cpp:
    (WebCore::HTMLSelectElement::HTMLSelectElement):
    New member m_allowsNonContiguousSelection defaults to false
    (WebCore::HTMLSelectElement::listBoxDefaultEventHandler):
    Tracking CTRL modifier to start multiple non contiguous selection
    * html/HTMLSelectElement.h: New member m_allowsNonContiguousSelection
    (WebCore::HTMLSelectElement::allowsNonContiguousSelection): New getter
    * rendering/RenderListBox.cpp:
    (WebCore::RenderListBox::addFocusRingRects):
    Following implementation made for spatial navigation
    
    LayoutTests:
    
    * fast/forms/listbox-non-contiguous-keyboard-selection-expected.txt: Added.
    * fast/forms/listbox-non-contiguous-keyboard-selection.html: Added.
    * platform/mac/TestExpectations:
    Multiple non contiguous selection with keyboard not enabled on Mac
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161558 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    8fb8a5c7