mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-17 19:21:23 +03:00
focus on escape in typeahead
This commit is contained in:
Vendored
+2
-1
@@ -53,9 +53,10 @@
|
|||||||
|
|
||||||
if (!isActive) {
|
if (!isActive) {
|
||||||
$parent.toggleClass('open')
|
$parent.toggleClass('open')
|
||||||
$this.focus()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this.focus()
|
||||||
|
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Vendored
+3
-2
@@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+2
-1
@@ -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