1
1
mirror of https://github.com/jxnblk/mdx-deck.git synced 2024-11-26 00:35:02 +03:00

Add keyboard shortcut for presenter mode

This commit is contained in:
Brent Jackson 2018-08-02 20:01:43 -04:00
parent fa1f025773
commit 367e701d5f

View File

@ -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
}))
}
}