Skip to content

Commit

Permalink
focus on escape in typeahead
Browse files Browse the repository at this point in the history
  • Loading branch information
fat committed Dec 7, 2012
1 parent 10e72e1 commit 4376540
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
3 changes: 2 additions & 1 deletion docs/assets/js/bootstrap-dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@

if (!isActive) {
$parent.toggleClass('open')
$this.focus()
}

$this.focus()

return false
}

Expand Down
2 changes: 1 addition & 1 deletion docs/assets/js/bootstrap-typeahead.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
}

, keydown: function (e) {
this.suppressKeyPressRepeat = !~$.inArray(e.keyCode, [40,38,9,13,27])
this.suppressKeyPressRepeat = ~$.inArray(e.keyCode, [40,38,9,13,27])
this.move(e)
}

Expand Down
5 changes: 3 additions & 2 deletions docs/assets/js/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -664,9 +664,10 @@

if (!isActive) {
$parent.toggleClass('open')
$this.focus()
}

$this.focus()

return false
}

Expand Down Expand Up @@ -1935,7 +1936,7 @@
}

, keydown: function (e) {
this.suppressKeyPressRepeat = !~$.inArray(e.keyCode, [40,38,9,13,27])
this.suppressKeyPressRepeat = ~$.inArray(e.keyCode, [40,38,9,13,27])
this.move(e)
}

Expand Down
2 changes: 1 addition & 1 deletion docs/assets/js/bootstrap.min.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion js/bootstrap-dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@

if (!isActive) {
$parent.toggleClass('open')
$this.focus()
}

$this.focus()

return false
}

Expand Down

0 comments on commit 4376540

Please sign in to comment.