Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
shower-presentation
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Шардт Максим Александрович
shower-presentation
Commits
96117b0a
Commit
96117b0a
authored
Jun 19, 2013
by
Vadim Makeev
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #141 from Patternslib/issue-141-key-hijack
Shower breaks input elements on a page
parents
aec32d71
f33e1c29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
11 deletions
+20
-11
shower.js
shower.js
+20
-11
No files found.
shower.js
View file @
96117b0a
...
...
@@ -852,8 +852,10 @@ window.shower = window.shower || (function(window, document, undefined) {
case
37
:
// Left
case
72
:
// H
case
75
:
// K
e
.
preventDefault
();
shower
.
_turnPreviousSlide
();
if
(
shower
.
isSlideMode
())
{
e
.
preventDefault
();
shower
.
_turnPreviousSlide
();
}
break
;
case
34
:
// PgDown
...
...
@@ -861,25 +863,32 @@ window.shower = window.shower || (function(window, document, undefined) {
case
39
:
// Right
case
76
:
// L
case
74
:
// J
e
.
preventDefault
();
shower
.
_turnNextSlide
();
if
(
shower
.
isSlideMode
())
{
e
.
preventDefault
();
shower
.
_turnNextSlide
();
}
break
;
case
36
:
// Home
e
.
preventDefault
();
shower
.
first
();
if
(
shower
.
isSlideMode
())
{
e
.
preventDefault
();
shower
.
first
();
}
break
;
case
35
:
// End
e
.
preventDefault
();
shower
.
last
();
if
(
shower
.
isSlideMode
())
{
e
.
preventDefault
();
shower
.
last
();
}
break
;
case
9
:
// Tab = +1; Shift + Tab = -1
case
32
:
// Space = +1; Shift + Space = -1
e
.
preventDefault
();
shower
[
e
.
shiftKey
?
'_turnPreviousSlide'
:
'_turnNextSlide'
]();
if
(
shower
.
isSlideMode
())
{
e
.
preventDefault
();
shower
[
e
.
shiftKey
?
'_turnPreviousSlide'
:
'_turnNextSlide'
]();
}
break
;
default
:
...
...
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