aboutsummaryrefslogtreecommitdiffhomepage
path: root/plugin/notes/notes.js
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/notes/notes.js')
-rw-r--r--plugin/notes/notes.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugin/notes/notes.js b/plugin/notes/notes.js
index e42329d..202e73b 100644
--- a/plugin/notes/notes.js
+++ b/plugin/notes/notes.js
@@ -55,12 +55,14 @@ var RevealNotes = (function() {
type: 'state',
notes: '',
markdown: false,
+ whitespace: 'normal',
state: Reveal.getState()
};
// Look for notes defined in a slide attribute
if( slideElement.hasAttribute( 'data-notes' ) ) {
messageData.notes = slideElement.getAttribute( 'data-notes' );
+ messageData.whitespace = 'pre-wrap';
}
// Look for notes defined in an aside element
@@ -109,6 +111,9 @@ var RevealNotes = (function() {
// modifier is present
if ( document.querySelector( ':focus' ) !== null || event.shiftKey || event.altKey || event.ctrlKey || event.metaKey ) return;
+ // Disregard the event if keyboard is disabled
+ if ( Reveal.getConfig().keyboard === false ) return;
+
if( event.keyCode === 83 ) {
event.preventDefault();
openNotes();