@@ -728,7 +728,10 @@ define([
728
728
'colorNext' : ( ) => RevealChalkboard . colorNext ( ) , // next color
729
729
'colorPrev' : ( ) => RevealChalkboard . colorPrev ( ) , // previous color
730
730
'download' : ( ) => RevealChalkboard . download ( ) // download recorded chalkboard drawing
731
- }
731
+ } ,
732
+ 'notes' : { // API calls for RevealNotes plug-in
733
+ 'openNotes' : ( ) => RevealNotes . open ( ) , // open speaker notes window
734
+ } ,
732
735
}
733
736
734
737
let reveal_helpstr = {
@@ -748,7 +751,10 @@ define([
748
751
'colorNext' : 'cycle to next pen color' ,
749
752
'colorPrev' : 'cycle to previous pen color' ,
750
753
'download' : 'download recorded chalkboard drawing'
751
- }
754
+ } ,
755
+ 'notes' : { // API calls for RevealNotes plug-in
756
+ 'openNotes' : 'open speaker notes windows'
757
+ } ,
752
758
}
753
759
754
760
// need to check, if we can fetch the default bindings from rise.yaml (nbconfig)
@@ -769,7 +775,10 @@ define([
769
775
'colorPrev' : 'q' , // keycode 81
770
776
'colorNext' : 's' , // kecode 83
771
777
'download' : '\\' // keycode 220
772
- }
778
+ } ,
779
+ 'notes' : { // API calls for RevealNotes plug-in
780
+ 'openNotes' : 't' // keycode 84
781
+ } ,
773
782
}
774
783
775
784
// update reveal bindings with custom key codes
@@ -874,6 +883,7 @@ define([
874
883
let jupyter_keys ;
875
884
let reveal_keys ;
876
885
let cb_keys ;
886
+ let no_keys ;
877
887
878
888
//check if custom bindings for registered jupyter calls are defined
879
889
if ( typeof complete_config . shortcuts !== 'undefined' ) {
@@ -889,8 +899,10 @@ define([
889
899
890
900
reveal_keys = updated_keybindings [ 'main' ] ;
891
901
cb_keys = updated_keybindings [ 'chalkboard' ] ;
902
+ no_keys = updated_keybindings [ 'notes' ] ;
892
903
let reveal_help = reveal_helpstr [ 'main' ] ;
893
904
let cb_help = reveal_helpstr [ 'chalkboard' ] ;
905
+ let no_help = reveal_helpstr [ 'notes' ] ;
894
906
895
907
let message = $ ( '<div/>' ) . append (
896
908
$ ( "<p/></p>" ) . addClass ( 'dialog' ) . html (
@@ -903,7 +915,7 @@ define([
903
915
helpListItem ( reveal_keys . firstSlide , reveal_help . firstSlide ) +
904
916
helpListItem ( reveal_keys . lastSlide , reveal_help . lastSlide ) +
905
917
helpListItem ( reveal_keys . toggleOverview , reveal_help . toggleOverview ) +
906
- helpListItem ( 't' , 'toggle notes' ) +
918
+ helpListItem ( no_keys . openNotes , no_help . openNotes ) +
907
919
`<li><kbd>,</kbd>: ${ reveal_help . toggleAllRiseButtons } </li>` +
908
920
"<li><kbd>/</kbd>: black screen</li>" +
909
921
"<li><strong>less useful:</strong>" +
@@ -917,6 +929,8 @@ define([
917
929
"<ul>" +
918
930
helpListItem ( cb_keys . toggleChalkboard , cb_help . toggleChalkboard ) +
919
931
helpListItem ( cb_keys . toggleNotesCanvas , cb_help . toggleNotesCanvaas ) +
932
+ helpListItem ( cb_keys . colorNext , cb_help . colorNext ) +
933
+ helpListItem ( cb_keys . colorPrev , cb_help . colorPrev ) +
920
934
helpListItem ( cb_keys . download , cb_help . download ) +
921
935
helpListItem ( cb_keys . reset , cb_help . reset ) +
922
936
helpListItem ( cb_keys . clear , cb_help . clear ) +
0 commit comments