From 367e701d5f1e97e9b6c4f05b65949c10c524bfae Mon Sep 17 00:00:00 2001 From: Brent Jackson Date: Thu, 2 Aug 2018 20:01:43 -0400 Subject: [PATCH] Add keyboard shortcut for presenter mode --- src/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/index.js b/src/index.js index 4a97514..6277a9c 100644 --- a/src/index.js +++ b/src/index.js @@ -70,6 +70,10 @@ export class SlideDeck extends React.Component { e.preventDefault() this.update(dec) break + case 'p': + this.update(state => ({ + mode: state.mode === modes.presenter ? modes.normal : modes.presenter + })) } }