Skip to content

Commit

Permalink
adjust list of displayed key shortcuts #943
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimel committed Jun 9, 2014
1 parent 9ff00a7 commit 6457348
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
6 changes: 4 additions & 2 deletions css/reveal.css
Original file line number Diff line number Diff line change
Expand Up @@ -1741,18 +1741,20 @@ body {
transform: scale(0.2);
}

.reveal .overlay.overlay-help .viewport {
overflow: auto;
}

.reveal .overlay.overlay-help .viewport .viewport-inner {
width: 600px;
height: 100%;
margin: 0 auto;
padding: 60px;
text-align: center;
letter-spacing: normal;
}

.reveal .overlay.overlay-help .viewport .viewport-inner .title {
font-size: 20px;
margin-top: 60px;
}

.reveal .overlay.overlay-help .viewport .viewport-inner table {
Expand Down
22 changes: 11 additions & 11 deletions js/reveal.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,16 +200,17 @@

// Holds information about the keyboard shortcuts
keyboardShortcuts = {
'P': 'Previous slide',
'N': 'Next slide',
'H': 'Navigate left',
'L': 'Navigate right',
'K': 'Navigate up',
'J': 'Navigate down',
'Home': 'First slide',
'End': 'Last slide',
'b': 'Pause',
'f': 'Fullscreen'
'N , SPACE': 'Next slide',
'P': 'Previous slide',
'← , H': 'Navigate left',
'→ , L': 'Navigate right',
'↑ , K': 'Navigate up',
'↓ , J': 'Navigate down',
'Home': 'First slide',
'End': 'Last slide',
'B , .': 'Pause',
'F': 'Fullscreen',
'ESC, O': 'Slide overview'
};

/**
Expand Down Expand Up @@ -1319,7 +1320,6 @@
function closeOverlay() {

if( dom.overlay ) {
dom.overlay.setAttribute( 'src', '' );
dom.overlay.parentNode.removeChild( dom.overlay );
dom.overlay = null;
}
Expand Down

0 comments on commit 6457348

Please # to comment.