Skip to content

Commit

Permalink
Generated by TRAVIS-CI 18eacf8
Browse files Browse the repository at this point in the history
aria1.0 combobox with autocomplete=both example: Make Up Arrow set activedescendant to last match in list (pull #857)

To address issue #821, make the up arrow behavior when a match exists consistent with when text box is empty.
  • Loading branch information
michael-n-cooper committed Sep 13, 2018
1 parent 6ef4f8b commit aa71786
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion examples/combobox/aria1.0pattern/js/combobox-1.0-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ ComboboxList.prototype.handleKeydown = function (event) {
break;

case this.keyCode.UP:

if (this.listbox.hasOptions()) {
if (this.listbox.hasFocus || (this.isBoth && this.option)) {
this.setOption(this.listbox.getPreviousItem(this.option), true);
Expand All @@ -186,8 +187,8 @@ ComboboxList.prototype.handleKeydown = function (event) {
if (!altKey) {
this.setOption(this.listbox.getLastItem(), true);
}
this.setVisualFocusListbox();
}
this.setVisualFocusListbox();
}
flag = true;
break;
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@

<title>WAI-ARIA Authoring Practices 1.1</title>


<style id="respec-mainstyle">/*****************************************************************
* ReSpec 3 CSS
* Robin Berjon - http://berjon.com/
Expand Down Expand Up @@ -395,6 +394,7 @@
}
</style>


<link href="common/css/common.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="https://www.w3.org/StyleSheets/TR/2016/W3C-ED"><link rel="canonical" href="https://www.w3.org/TR/wai-aria-practices-1.1/"><script id="initialUserConfig" type="application/json">{
"doRDFa": "1.1",
Expand Down

0 comments on commit aa71786

Please sign in to comment.