mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-04 12:47:35 +02:00
focus on escape in typeahead
This commit is contained in:
3
docs/assets/js/bootstrap-dropdown.js
vendored
3
docs/assets/js/bootstrap-dropdown.js
vendored
@@ -53,9 +53,10 @@
|
|||||||
|
|
||||||
if (!isActive) {
|
if (!isActive) {
|
||||||
$parent.toggleClass('open')
|
$parent.toggleClass('open')
|
||||||
$this.focus()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this.focus()
|
||||||
|
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2
docs/assets/js/bootstrap-typeahead.js
vendored
2
docs/assets/js/bootstrap-typeahead.js
vendored
@@ -217,7 +217,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
, keydown: function (e) {
|
, 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)
|
this.move(e)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
5
docs/assets/js/bootstrap.js
vendored
5
docs/assets/js/bootstrap.js
vendored
@@ -664,9 +664,10 @@
|
|||||||
|
|
||||||
if (!isActive) {
|
if (!isActive) {
|
||||||
$parent.toggleClass('open')
|
$parent.toggleClass('open')
|
||||||
$this.focus()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this.focus()
|
||||||
|
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1935,7 +1936,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
, keydown: function (e) {
|
, 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)
|
this.move(e)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2
docs/assets/js/bootstrap.min.js
vendored
2
docs/assets/js/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
3
js/bootstrap-dropdown.js
vendored
3
js/bootstrap-dropdown.js
vendored
@@ -53,9 +53,10 @@
|
|||||||
|
|
||||||
if (!isActive) {
|
if (!isActive) {
|
||||||
$parent.toggleClass('open')
|
$parent.toggleClass('open')
|
||||||
$this.focus()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this.focus()
|
||||||
|
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user