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:
parent
fa1f025773
commit
367e701d5f
@ -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
|
||||
}))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user