Browse Source

Fix page down/up scrolling page when not search selection, simplify letter select shortcuts (first value with letter only)

pull/2209/head
jlukic 9 years ago
parent
commit
af565875e8
1 changed files with 5 additions and 5 deletions
  1. 10
      src/definitions/modules/dropdown.js

10
src/definitions/modules/dropdown.js

@ -853,7 +853,7 @@ $.fn.dropdown = function(parameters) {
caretAtStart = (isFocusedOnSearch && module.get.caretPosition() === 0),
$nextLabel
;
if(!hasActiveLabel && !isFocusedOnSearch) {
if(isSearch && !hasActiveLabel && !isFocusedOnSearch) {
return;
}
@ -1080,9 +1080,11 @@ $.fn.dropdown = function(parameters) {
// page down (show next page)
if(pressedKey == keys.pageUp) {
module.scrollPage('up');
event.preventDefault();
}
if(pressedKey == keys.pageDown) {
module.scrollPage('down');
event.preventDefault();
}
// escape (close menu)
@ -1659,10 +1661,8 @@ $.fn.dropdown = function(parameters) {
matchedLetter = letter.toLowerCase()
;
if(firstLetter == matchedLetter) {
if(!$choice.hasClass(className.selected)) {
$nextValue = $choice;
return false;
}
$nextValue = $choice;
return false;
}
})
;

Loading…
Cancel
Save