Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
0b827965
Commit
0b827965
authored
Jun 02, 2012
by
Jacob Thornton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix regression in typeahead #3313
parent
354f99f0
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
102 additions
and
82 deletions
+102
-82
docs/assets/js/bootstrap-typeahead.js
docs/assets/js/bootstrap-typeahead.js
+33
-27
docs/assets/js/bootstrap.js
docs/assets/js/bootstrap.js
+33
-27
docs/assets/js/bootstrap.min.js
docs/assets/js/bootstrap.min.js
+1
-1
js/bootstrap-typeahead.js
js/bootstrap-typeahead.js
+35
-27
No files found.
docs/assets/js/bootstrap-typeahead.js
View file @
0b827965
...
@@ -169,7 +169,7 @@
...
@@ -169,7 +169,7 @@
.
on
(
'
keyup
'
,
$
.
proxy
(
this
.
keyup
,
this
))
.
on
(
'
keyup
'
,
$
.
proxy
(
this
.
keyup
,
this
))
if
(
$
.
browser
.
webkit
||
$
.
browser
.
msie
)
{
if
(
$
.
browser
.
webkit
||
$
.
browser
.
msie
)
{
this
.
$element
.
on
(
'
keydown
'
,
$
.
proxy
(
this
.
key
press
,
this
))
this
.
$element
.
on
(
'
keydown
'
,
$
.
proxy
(
this
.
key
down
,
this
))
}
}
this
.
$menu
this
.
$menu
...
@@ -177,55 +177,61 @@
...
@@ -177,55 +177,61 @@
.
on
(
'
mouseenter
'
,
'
li
'
,
$
.
proxy
(
this
.
mouseenter
,
this
))
.
on
(
'
mouseenter
'
,
'
li
'
,
$
.
proxy
(
this
.
mouseenter
,
this
))
}
}
,
keyup
:
function
(
e
)
{
,
move
:
function
(
e
)
{
switch
(
e
.
keyCode
)
{
switch
(
e
.
keyCode
)
{
case
40
:
// down arrow
case
38
:
// up arrow
break
case
9
:
// tab
case
9
:
// tab
case
13
:
// enter
case
13
:
// enter
if
(
!
this
.
shown
)
return
case
27
:
// escape
this
.
selec
t
()
e
.
preventDefaul
t
()
break
break
case
27
:
// escape
case
38
:
// up arrow
if
(
!
this
.
shown
)
return
e
.
preventDefault
()
this
.
hide
()
this
.
prev
()
break
break
default
:
case
40
:
// down arrow
this
.
lookup
()
e
.
preventDefault
()
this
.
next
()
break
}
}
e
.
stopPropagation
()
e
.
stopPropagation
()
e
.
preventDefault
()
}
,
keydown
:
function
(
e
)
{
this
.
suppressKeyPressRepeat
=
!~
[
40
,
38
,
9
,
13
,
27
].
indexOf
(
e
.
keyCode
)
this
.
move
(
e
)
}
}
,
keypress
:
function
(
e
)
{
,
keypress
:
function
(
e
)
{
if
(
!
this
.
shown
)
return
if
(
!
this
.
shown
||
this
.
suppressKeyPressRepeat
)
return
this
.
move
(
e
)
}
,
keyup
:
function
(
e
)
{
switch
(
e
.
keyCode
)
{
switch
(
e
.
keyCode
)
{
case
40
:
// down arrow
case
38
:
// up arrow
break
case
9
:
// tab
case
9
:
// tab
case
13
:
// enter
case
13
:
// enter
case
27
:
// escape
if
(
!
this
.
shown
)
return
e
.
preventDefaul
t
()
this
.
selec
t
()
break
break
case
38
:
// up arrow
case
27
:
// escape
if
(
e
.
type
!=
'
keydown
'
)
break
if
(
!
this
.
shown
)
return
e
.
preventDefault
()
this
.
hide
()
this
.
prev
()
break
break
case
40
:
// down arrow
default
:
if
(
e
.
type
!=
'
keydown
'
)
break
this
.
lookup
()
e
.
preventDefault
()
this
.
next
()
break
}
}
e
.
stopPropagation
()
e
.
stopPropagation
()
e
.
preventDefault
()
}
}
,
blur
:
function
(
e
)
{
,
blur
:
function
(
e
)
{
...
...
docs/assets/js/bootstrap.js
View file @
0b827965
...
@@ -1763,7 +1763,7 @@
...
@@ -1763,7 +1763,7 @@
.
on
(
'
keyup
'
,
$
.
proxy
(
this
.
keyup
,
this
))
.
on
(
'
keyup
'
,
$
.
proxy
(
this
.
keyup
,
this
))
if
(
$
.
browser
.
webkit
||
$
.
browser
.
msie
)
{
if
(
$
.
browser
.
webkit
||
$
.
browser
.
msie
)
{
this
.
$element
.
on
(
'
keydown
'
,
$
.
proxy
(
this
.
key
press
,
this
))
this
.
$element
.
on
(
'
keydown
'
,
$
.
proxy
(
this
.
key
down
,
this
))
}
}
this
.
$menu
this
.
$menu
...
@@ -1771,55 +1771,61 @@
...
@@ -1771,55 +1771,61 @@
.
on
(
'
mouseenter
'
,
'
li
'
,
$
.
proxy
(
this
.
mouseenter
,
this
))
.
on
(
'
mouseenter
'
,
'
li
'
,
$
.
proxy
(
this
.
mouseenter
,
this
))
}
}
,
keyup
:
function
(
e
)
{
,
move
:
function
(
e
)
{
switch
(
e
.
keyCode
)
{
switch
(
e
.
keyCode
)
{
case
40
:
// down arrow
case
38
:
// up arrow
break
case
9
:
// tab
case
9
:
// tab
case
13
:
// enter
case
13
:
// enter
if
(
!
this
.
shown
)
return
case
27
:
// escape
this
.
selec
t
()
e
.
preventDefaul
t
()
break
break
case
27
:
// escape
case
38
:
// up arrow
if
(
!
this
.
shown
)
return
e
.
preventDefault
()
this
.
hide
()
this
.
prev
()
break
break
default
:
case
40
:
// down arrow
this
.
lookup
()
e
.
preventDefault
()
this
.
next
()
break
}
}
e
.
stopPropagation
()
e
.
stopPropagation
()
e
.
preventDefault
()
}
,
keydown
:
function
(
e
)
{
this
.
suppressKeyPressRepeat
=
!~
[
40
,
38
,
9
,
13
,
27
].
indexOf
(
e
.
keyCode
)
this
.
move
(
e
)
}
}
,
keypress
:
function
(
e
)
{
,
keypress
:
function
(
e
)
{
if
(
!
this
.
shown
)
return
if
(
!
this
.
shown
||
this
.
suppressKeyPressRepeat
)
return
this
.
move
(
e
)
}
,
keyup
:
function
(
e
)
{
switch
(
e
.
keyCode
)
{
switch
(
e
.
keyCode
)
{
case
40
:
// down arrow
case
38
:
// up arrow
break
case
9
:
// tab
case
9
:
// tab
case
13
:
// enter
case
13
:
// enter
case
27
:
// escape
if
(
!
this
.
shown
)
return
e
.
preventDefaul
t
()
this
.
selec
t
()
break
break
case
38
:
// up arrow
case
27
:
// escape
if
(
e
.
type
!=
'
keydown
'
)
break
if
(
!
this
.
shown
)
return
e
.
preventDefault
()
this
.
hide
()
this
.
prev
()
break
break
case
40
:
// down arrow
default
:
if
(
e
.
type
!=
'
keydown
'
)
break
this
.
lookup
()
e
.
preventDefault
()
this
.
next
()
break
}
}
e
.
stopPropagation
()
e
.
stopPropagation
()
e
.
preventDefault
()
}
}
,
blur
:
function
(
e
)
{
,
blur
:
function
(
e
)
{
...
...
docs/assets/js/bootstrap.min.js
View file @
0b827965
This diff is collapsed.
Click to expand it.
js/bootstrap-typeahead.js
View file @
0b827965
...
@@ -169,7 +169,7 @@
...
@@ -169,7 +169,7 @@
.
on
(
'
keyup
'
,
$
.
proxy
(
this
.
keyup
,
this
))
.
on
(
'
keyup
'
,
$
.
proxy
(
this
.
keyup
,
this
))
if
(
$
.
browser
.
webkit
||
$
.
browser
.
msie
)
{
if
(
$
.
browser
.
webkit
||
$
.
browser
.
msie
)
{
this
.
$element
.
on
(
'
keydown
'
,
$
.
proxy
(
this
.
key
press
,
this
))
this
.
$element
.
on
(
'
keydown
'
,
$
.
proxy
(
this
.
key
down
,
this
))
}
}
this
.
$menu
this
.
$menu
...
@@ -177,55 +177,63 @@
...
@@ -177,55 +177,63 @@
.
on
(
'
mouseenter
'
,
'
li
'
,
$
.
proxy
(
this
.
mouseenter
,
this
))
.
on
(
'
mouseenter
'
,
'
li
'
,
$
.
proxy
(
this
.
mouseenter
,
this
))
}
}
,
keyup
:
function
(
e
)
{
,
move
:
function
(
e
)
{
switch
(
e
.
keyCode
)
{
if
(
!
this
.
shown
)
return
case
40
:
// down arrow
case
38
:
// up arrow
break
switch
(
e
.
keyCode
)
{
case
9
:
// tab
case
9
:
// tab
case
13
:
// enter
case
13
:
// enter
if
(
!
this
.
shown
)
return
case
27
:
// escape
this
.
selec
t
()
e
.
preventDefaul
t
()
break
break
case
27
:
// escape
case
38
:
// up arrow
if
(
!
this
.
shown
)
return
e
.
preventDefault
()
this
.
hide
()
this
.
prev
()
break
break
default
:
case
40
:
// down arrow
this
.
lookup
()
e
.
preventDefault
()
this
.
next
()
break
}
}
e
.
stopPropagation
()
e
.
stopPropagation
()
e
.
preventDefault
()
}
,
keydown
:
function
(
e
)
{
this
.
suppressKeyPressRepeat
=
!~
[
40
,
38
,
9
,
13
,
27
].
indexOf
(
e
.
keyCode
)
this
.
move
(
e
)
}
}
,
keypress
:
function
(
e
)
{
,
keypress
:
function
(
e
)
{
if
(
!
this
.
shown
)
return
if
(
this
.
suppressKeyPressRepeat
)
return
this
.
move
(
e
)
}
,
keyup
:
function
(
e
)
{
switch
(
e
.
keyCode
)
{
switch
(
e
.
keyCode
)
{
case
40
:
// down arrow
case
38
:
// up arrow
break
case
9
:
// tab
case
9
:
// tab
case
13
:
// enter
case
13
:
// enter
case
27
:
// escape
if
(
!
this
.
shown
)
return
e
.
preventDefaul
t
()
this
.
selec
t
()
break
break
case
38
:
// up arrow
case
27
:
// escape
if
(
e
.
type
!=
'
keydown
'
)
break
if
(
!
this
.
shown
)
return
e
.
preventDefault
()
this
.
hide
()
this
.
prev
()
break
break
case
40
:
// down arrow
default
:
if
(
e
.
type
!=
'
keydown
'
)
break
this
.
lookup
()
e
.
preventDefault
()
this
.
next
()
break
}
}
e
.
stopPropagation
()
e
.
stopPropagation
()
e
.
preventDefault
()
}
}
,
blur
:
function
(
e
)
{
,
blur
:
function
(
e
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment