Skip to content
Snippets Groups Projects
Unverified Commit 10276b33 authored by Anton Georgiev's avatar Anton Georgiev Committed by GitHub
Browse files

Merge pull request #10590 from hiroshisuga/patch-7

Shortcut key to toggle fullscreen
parents e03e678c e5f6fe77
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,7 @@ import ZoomTool from './zoom-tool/component';
import FullscreenButtonContainer from '../../fullscreen-button/container';
import TooltipContainer from '/imports/ui/components/tooltip/container';
import QuickPollDropdownContainer from '/imports/ui/components/actions-bar/quick-poll-dropdown/container';
import FullscreenService from '/imports/ui/components/fullscreen-button/service';
import KEY_CODES from '/imports/utils/keyCodes';
const intlMessages = defineMessages({
......@@ -101,6 +102,7 @@ class PresentationToolbar extends PureComponent {
switchSlide(event) {
const { target, which } = event;
const isBody = target.nodeName === 'BODY';
const { fullscreenRef } = this.props;
if (isBody) {
switch (which) {
......@@ -112,6 +114,9 @@ class PresentationToolbar extends PureComponent {
case KEY_CODES.PAGE_DOWN:
this.nextSlideHandler();
break;
case KEY_CODES.ENTER:
FullscreenService.toggleFullScreen(fullscreenRef);
break;
default:
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment