Commit fdf9d114 authored by Greger's avatar Greger Committed by Gargaj
Browse files

Add Ctrl/Cmd-f to hide shader overlay, to resolve problems with using F11 on Mac (#33)

parent 53a6b4cd
...@@ -13,7 +13,7 @@ The tool was originally conceived and implemented after the Revision 2014 demosc ...@@ -13,7 +13,7 @@ The tool was originally conceived and implemented after the Revision 2014 demosc
## Keys ## Keys
- F2: toggle texture preview - F2: toggle texture preview
- F5 or Ctrl-R: recompile shader - F5 or Ctrl-R: recompile shader
- F11: hide shader overlay - F11 or Ctrl/Cmd-f: hide shader overlay
- Alt-F4: exbobolate your planet - Alt-F4: exbobolate your planet
## Configuration ## Configuration
......
...@@ -375,7 +375,7 @@ int main() ...@@ -375,7 +375,7 @@ int main()
mDebugOutput.SetText( szError ); mDebugOutput.SetText( szError );
} }
} }
else if (Renderer::keyEventBuffer[i].scanCode == 292) // F11 else if (Renderer::keyEventBuffer[i].scanCode == 292 || (Renderer::keyEventBuffer[i].ctrl && Renderer::keyEventBuffer[i].scanCode == 'f')) // F11 or Ctrl/Cmd-f
{ {
bShowGui = !bShowGui; bShowGui = !bShowGui;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment