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
Hide 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 @@
.
on
(
'
keyup
'
,
$
.
proxy
(
this
.
keyup
,
this
))
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
...
...
@@ -177,6 +177,38 @@
.
on
(
'
mouseenter
'
,
'
li
'
,
$
.
proxy
(
this
.
mouseenter
,
this
))
}
,
move
:
function
(
e
)
{
switch
(
e
.
keyCode
)
{
case
9
:
// tab
case
13
:
// enter
case
27
:
// escape
e
.
preventDefault
()
break
case
38
:
// up arrow
e
.
preventDefault
()
this
.
prev
()
break
case
40
:
// down arrow
e
.
preventDefault
()
this
.
next
()
break
}
e
.
stopPropagation
()
}
,
keydown
:
function
(
e
)
{
this
.
suppressKeyPressRepeat
=
!~
[
40
,
38
,
9
,
13
,
27
].
indexOf
(
e
.
keyCode
)
this
.
move
(
e
)
}
,
keypress
:
function
(
e
)
{
if
(
!
this
.
shown
||
this
.
suppressKeyPressRepeat
)
return
this
.
move
(
e
)
}
,
keyup
:
function
(
e
)
{
switch
(
e
.
keyCode
)
{
case
40
:
// down arrow
...
...
@@ -202,32 +234,6 @@
e
.
preventDefault
()
}
,
keypress
:
function
(
e
)
{
if
(
!
this
.
shown
)
return
switch
(
e
.
keyCode
)
{
case
9
:
// tab
case
13
:
// enter
case
27
:
// escape
e
.
preventDefault
()
break
case
38
:
// up arrow
if
(
e
.
type
!=
'
keydown
'
)
break
e
.
preventDefault
()
this
.
prev
()
break
case
40
:
// down arrow
if
(
e
.
type
!=
'
keydown
'
)
break
e
.
preventDefault
()
this
.
next
()
break
}
e
.
stopPropagation
()
}
,
blur
:
function
(
e
)
{
var
that
=
this
setTimeout
(
function
()
{
that
.
hide
()
},
150
)
...
...
docs/assets/js/bootstrap.js
View file @
0b827965
...
...
@@ -1763,7 +1763,7 @@
.
on
(
'
keyup
'
,
$
.
proxy
(
this
.
keyup
,
this
))
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
...
...
@@ -1771,6 +1771,38 @@
.
on
(
'
mouseenter
'
,
'
li
'
,
$
.
proxy
(
this
.
mouseenter
,
this
))
}
,
move
:
function
(
e
)
{
switch
(
e
.
keyCode
)
{
case
9
:
// tab
case
13
:
// enter
case
27
:
// escape
e
.
preventDefault
()
break
case
38
:
// up arrow
e
.
preventDefault
()
this
.
prev
()
break
case
40
:
// down arrow
e
.
preventDefault
()
this
.
next
()
break
}
e
.
stopPropagation
()
}
,
keydown
:
function
(
e
)
{
this
.
suppressKeyPressRepeat
=
!~
[
40
,
38
,
9
,
13
,
27
].
indexOf
(
e
.
keyCode
)
this
.
move
(
e
)
}
,
keypress
:
function
(
e
)
{
if
(
!
this
.
shown
||
this
.
suppressKeyPressRepeat
)
return
this
.
move
(
e
)
}
,
keyup
:
function
(
e
)
{
switch
(
e
.
keyCode
)
{
case
40
:
// down arrow
...
...
@@ -1796,32 +1828,6 @@
e
.
preventDefault
()
}
,
keypress
:
function
(
e
)
{
if
(
!
this
.
shown
)
return
switch
(
e
.
keyCode
)
{
case
9
:
// tab
case
13
:
// enter
case
27
:
// escape
e
.
preventDefault
()
break
case
38
:
// up arrow
if
(
e
.
type
!=
'
keydown
'
)
break
e
.
preventDefault
()
this
.
prev
()
break
case
40
:
// down arrow
if
(
e
.
type
!=
'
keydown
'
)
break
e
.
preventDefault
()
this
.
next
()
break
}
e
.
stopPropagation
()
}
,
blur
:
function
(
e
)
{
var
that
=
this
setTimeout
(
function
()
{
that
.
hide
()
},
150
)
...
...
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 @@
.
on
(
'
keyup
'
,
$
.
proxy
(
this
.
keyup
,
this
))
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
...
...
@@ -177,6 +177,40 @@
.
on
(
'
mouseenter
'
,
'
li
'
,
$
.
proxy
(
this
.
mouseenter
,
this
))
}
,
move
:
function
(
e
)
{
if
(
!
this
.
shown
)
return
switch
(
e
.
keyCode
)
{
case
9
:
// tab
case
13
:
// enter
case
27
:
// escape
e
.
preventDefault
()
break
case
38
:
// up arrow
e
.
preventDefault
()
this
.
prev
()
break
case
40
:
// down arrow
e
.
preventDefault
()
this
.
next
()
break
}
e
.
stopPropagation
()
}
,
keydown
:
function
(
e
)
{
this
.
suppressKeyPressRepeat
=
!~
[
40
,
38
,
9
,
13
,
27
].
indexOf
(
e
.
keyCode
)
this
.
move
(
e
)
}
,
keypress
:
function
(
e
)
{
if
(
this
.
suppressKeyPressRepeat
)
return
this
.
move
(
e
)
}
,
keyup
:
function
(
e
)
{
switch
(
e
.
keyCode
)
{
case
40
:
// down arrow
...
...
@@ -202,32 +236,6 @@
e
.
preventDefault
()
}
,
keypress
:
function
(
e
)
{
if
(
!
this
.
shown
)
return
switch
(
e
.
keyCode
)
{
case
9
:
// tab
case
13
:
// enter
case
27
:
// escape
e
.
preventDefault
()
break
case
38
:
// up arrow
if
(
e
.
type
!=
'
keydown
'
)
break
e
.
preventDefault
()
this
.
prev
()
break
case
40
:
// down arrow
if
(
e
.
type
!=
'
keydown
'
)
break
e
.
preventDefault
()
this
.
next
()
break
}
e
.
stopPropagation
()
}
,
blur
:
function
(
e
)
{
var
that
=
this
setTimeout
(
function
()
{
that
.
hide
()
},
150
)
...
...
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