Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
b9589fcb
Commit
b9589fcb
authored
13 years ago
by
David N
Browse files
Options
Download
Email Patches
Plain Diff
Enable default browser key behaviour when typeahead isn't showing.
parent
95356ee0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/bootstrap-typeahead.js
+2
-2
js/bootstrap-typeahead.js
with
2 additions
and
2 deletions
+2
-2
js/bootstrap-typeahead.js
+
2
-
2
View file @
b9589fcb
...
@@ -157,6 +157,7 @@
...
@@ -157,6 +157,7 @@
case
9
:
// tab
case
9
:
// tab
case
13
:
// enter
case
13
:
// enter
if
(
!
this
.
shown
)
return
this
.
select
()
this
.
select
()
break
break
...
@@ -172,6 +173,7 @@
...
@@ -172,6 +173,7 @@
,
keypress
:
function
(
e
)
{
,
keypress
:
function
(
e
)
{
e
.
stopPropagation
()
e
.
stopPropagation
()
if
(
!
this
.
shown
)
return
switch
(
e
.
keyCode
)
{
switch
(
e
.
keyCode
)
{
case
9
:
// tab
case
9
:
// tab
...
@@ -181,13 +183,11 @@
...
@@ -181,13 +183,11 @@
break
break
case
38
:
// up arrow
case
38
:
// up arrow
if
(
!
this
.
shown
)
return
e
.
preventDefault
()
e
.
preventDefault
()
this
.
prev
()
this
.
prev
()
break
break
case
40
:
// down arrow
case
40
:
// down arrow
if
(
!
this
.
shown
)
return
e
.
preventDefault
()
e
.
preventDefault
()
this
.
next
()
this
.
next
()
break
break
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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