/src/main/java/org/htmlunit/html/HtmlSelect.java
if ( shiftKey) {
if ( !shiftKey ) {
} private void doSelectOption(final HtmlOption selectedOption, final boolean isSelected, final boolean shiftKey, final boolean ctrlKey, final boolean isClick) { if (isMultipleSelectEnabled()) { selectedOption.setSelectedInternal(isSelected); if (isClick && !ctrlKey) { <extra_id_0> setOnlySelected(selectedOption, isSelected); lastSelectedIndex_ = getOptions().indexOf(selectedOption); } else if (isSelected && lastSelectedIndex_ != -1) { final List<HtmlOption> options = getOptions(); final int newIndex = options.indexOf(selectedOption);