Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
JUNCA24 RevealJS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PGI15-Teaching
JUNCA24 RevealJS
Commits
0ef90e0d
Commit
0ef90e0d
authored
12 years ago
by
Hakim El Hattab
Browse files
Options
Downloads
Patches
Plain Diff
'keyboard' config option for disabling keyboard navigation (closes #84)
parent
7f9662ed
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+5
-1
5 additions, 1 deletion
README.md
js/reveal.js
+7
-1
7 additions, 1 deletion
js/reveal.js
with
12 additions
and
2 deletions
README.md
+
5
−
1
View file @
0ef90e0d
...
...
@@ -39,6 +39,9 @@ Reveal.initialize({
// Push each slide change to the browser history
history
:
false
,
// Enable keyboard shortcuts for navigation
keyboard
:
true
,
// Loop the presentation
loop
:
false
,
...
...
@@ -168,7 +171,7 @@ You can change the appearance of the speaker notes by editing the file at `plugi
#### 1.4 (master/beta)
-
Main #reveal container is now selected via a class instead of ID
-
API methods for adding or removing all event listeners
-
The
'
slidechange
'
event now includes currentSlide and previousSlide
-
The
```
slidechange
```
event now includes currentSlide and previousSlide
-
Fixed bug where 'slidechange' was firing twice when history was enabled
-
Folder structure updates for scalability (see /lib & /plugin)
-
Slide notes by
[
rmurphey
](
https://github.com/rmurphey
)
...
...
@@ -177,6 +180,7 @@ You can change the appearance of the speaker notes by editing the file at `plugi
-
Added 'autoSlide' config
-
Bug fix: The 'slidechanged' event is now firing upon 'hashchange'. Thanks
[
basecode
](
https://github.com/basecode
)
-
Bug fix: JS error when the 'progress' option was true but there was no progress DOM element
-
```keyboard```
config flag for disabling all keyboard navigation
#### 1.3
-
Revised keyboard shortcuts, including ESC for overview, N for next, P for previous. Thanks
[
mahemoff
](
https://github.com/mahemoff
)
...
...
This diff is collapsed.
Click to expand it.
js/reveal.js
+
7
−
1
View file @
0ef90e0d
...
...
@@ -27,6 +27,9 @@ var Reveal = (function(){
// Push each slide change to the browser history
history
:
false
,
// Enable keyboard shortcuts for navigation
keyboard
:
true
,
// Loop the presentation
loop
:
false
,
...
...
@@ -179,12 +182,15 @@ var Reveal = (function(){
}
function
addEventListeners
()
{
document
.
addEventListener
(
'
keydown
'
,
onDocumentKeyDown
,
false
);
document
.
addEventListener
(
'
touchstart
'
,
onDocumentTouchStart
,
false
);
document
.
addEventListener
(
'
touchmove
'
,
onDocumentTouchMove
,
false
);
document
.
addEventListener
(
'
touchend
'
,
onDocumentTouchEnd
,
false
);
window
.
addEventListener
(
'
hashchange
'
,
onWindowHashChange
,
false
);
if
(
config
.
keyboard
)
{
document
.
addEventListener
(
'
keydown
'
,
onDocumentKeyDown
,
false
);
}
if
(
config
.
controls
&&
dom
.
controls
)
{
dom
.
controlsLeft
.
addEventListener
(
'
click
'
,
preventAndForward
(
navigateLeft
),
false
);
dom
.
controlsRight
.
addEventListener
(
'
click
'
,
preventAndForward
(
navigateRight
),
false
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment