Skip to content

Commit

Permalink
Close fullscreen on esc key.
Browse files Browse the repository at this point in the history
  • Loading branch information
bbirec committed Mar 6, 2016
1 parent 04dc1d5 commit dd04dcc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions PeerPlayer/RootView.m
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ -(void) keyDown:(NSEvent *)event
case 36:
[self.window toggleFullScreen:self];
break;
// Esc
case 53:
if([self isFullscreen]) {
[self.window toggleFullScreen:self];
}
break;
default:
break;
}
Expand Down

0 comments on commit dd04dcc

Please sign in to comment.