Skip to content

Commit a09a9ca

Browse files
committed
Fixing presenter mode triggering when printing
1 parent 58ab6f6 commit a09a9ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/deck.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ class Deck extends React.Component {
5858
if (event.keyCode === 39 || event.keyCode === 34) {
5959
this._nextSlide();
6060
}
61-
if (event.keyCode === 79) { // o
61+
if (event.keyCode === 79 && !event.ctrlKey && !event.metaKey) { // o
6262
this._toggleOverviewMode();
6363
}
64-
if (event.keyCode === 80) { // o
64+
if (event.keyCode === 80 && !event.ctrlKey && !event.metaKey) { // o
6565
this._togglePresenterMode();
6666
}
6767
}

0 commit comments

Comments
 (0)