diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/platform.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/platform.cc b/src/platform.cc index fa49b53..b0ec86b 100644 --- a/src/platform.cc +++ b/src/platform.cc @@ -10,7 +10,7 @@ static bool g_is_fullscreen = false; static void glfw_key_callback(GLFWwindow *cb_window, int key, int scancode, int action, int mods) { if (action == GLFW_PRESS) { - if (key == GLFW_KEY_ESCAPE) { + if (key == GLFW_KEY_ESCAPE || key == GLFW_KEY_Q) { glfwSetWindowShouldClose(cb_window, GLFW_TRUE); } else if (key == GLFW_KEY_F) { platform_toggle_fullscreen(); |
