Skip to content

Conversation

@kiraarghy
Copy link
Contributor

@kiraarghy kiraarghy commented Nov 1, 2019

This branch provides feature parity with existing spectacle for the keybindings for setting specific modes.

Alt + P -> Presenter mode.
Alt + O -> Overview mode.
Alt + F -> Fullscreen mode.

https://github.com/FormidableLabs/spectacle#controls

1. Extracted fullscreen hook from fullscreen button.
1. Added dispatch ToggleMode
1. Added key bindings for overviewMode, presenterMode and fullscreen modes.
@kiraarghy
Copy link
Contributor Author

FWIW I do not have a windows computer to test on so I assume these work.

e.preventDefault();
}
}
if (!!e.altKey) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess there may be an argument that this hook is doing too much.

I like that all the logic is co-located but happy for feedback.

@kiraarghy kiraarghy merged commit 428f31c into task/rewrite Nov 1, 2019
@kale-stew kale-stew deleted the kara/keyboardCommands branch January 7, 2020 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants