Skip to content

Commit

Permalink
exit fullscreen if esc pressed
Browse files Browse the repository at this point in the history
  • Loading branch information
Luis Ruiz committed Mar 26, 2019
1 parent 744d394 commit 190463d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/DesktopApp/Browser/BrowserKeyboardHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ namespace desktop { namespace ui {
{
return true;
}
else if (os_event->wParam == VK_ESCAPE)
{
browser->GetMainFrame()->ExecuteJavaScript("document.exitFullscreen();", browser->GetMainFrame()->GetURL(), 0);
return true;
}
else
{
HWND hWindow = GetParent( browser->GetHost()->GetWindowHandle() );
Expand Down

0 comments on commit 190463d

Please sign in to comment.