1
1
mirror of https://github.com/jxnblk/mdx-deck.git synced 2024-09-17 09:57:23 +03:00

Use opt+f to go fullscreen

This commit is contained in:
Ravan Scafi 2019-10-01 09:50:04 -03:00
parent 3951c7637d
commit 6859d8bac2
No known key found for this signature in database
GPG Key ID: AEF6B7132F696737
2 changed files with 12 additions and 0 deletions

View File

@ -6,6 +6,7 @@
3. Move the new tab to its own window in the screen or projector that the audience sees
4. Control the presentation from the original window
5. Be sure to hide your mouse cursor so that it's not visible to the audience
6. You can press `Opt + F` on the new tab to go fullscreen
## Speaker Notes

View File

@ -13,6 +13,7 @@ const keys = {
space: 32,
p: 80,
o: 79,
f: 70,
g: 71,
esc: 27,
pageUp: 33,
@ -63,6 +64,16 @@ export const useKeyboard = () => {
case keys.g:
context.setState(toggleMode(modes.grid))
break
case keys.f:
const element = e.target
element.requestFullscreen =
element.requestFullscreen ||
element.mozRequestFullScreen ||
element.webkitRequestFullScreen
element.requestFullscreen()
break
}
} else {
switch (e.keyCode) {