Skip to content

Commit

Permalink
Ctrl + Slash will now comment and uncomment your selected lines of code
Browse files Browse the repository at this point in the history
  • Loading branch information
sacredbanana committed May 25, 2019
1 parent b764e96 commit 0e5d5bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ int main(int argc, const char *argv[])
mDebugOutput.SetText( szError );
}
}
else if (Renderer::keyEventBuffer[i].ctrl && Renderer::keyEventBuffer[i].scanCode == '/') // Ctrl Slash (/)
else if (Renderer::keyEventBuffer[i].ctrl && (Renderer::keyEventBuffer[i].scanCode == '/' || Renderer::keyEventBuffer[i].scanCode == 'k')) // Ctrl/Cmd Slash (/) or Ctrl/Cmd-k
{
mShaderEditor.CommentSelection();
}
Expand Down

0 comments on commit 0e5d5bd

Please sign in to comment.