Commit a15f2daf authored by Henrik Tramberend's avatar Henrik Tramberend

Add ke bindings for color and pen size to whiteboard

parent cb01bd11
......@@ -1481,7 +1481,23 @@ let RevealWhiteboard = (function(){
description: 'Toggle Whiteboard' },
toggleWhiteboard );
for (let i = 0; i < 7; i++) {
Reveal.addKeyBinding( { keyCode: 49+i, key: String.fromCharCode(49+i),
description: 'Toggle Whiteboard' },
() => { selectPenColor(penColors[i]); } );
}
Reveal.addKeyBinding( { keyCode: 56, key: '8',
description: 'Toggle Whiteboard' },
() => { selectPenRadius(2); } );
Reveal.addKeyBinding( { keyCode: 57, key: '9',
description: 'Toggle Whiteboard' },
() => { selectPenRadius(4); } );
Reveal.addKeyBinding( { keyCode: 48, key: '0',
description: 'Toggle Whiteboard' },
() => { selectPenRadius(6); } );
return {
init: function() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment