Skip to content

Commit 37919be

Browse files
franciscojma86stuartmorgan
authored andcommitted
[linux] Stop terminating the app when user types the ESC key. (#167)
1 parent 5c75476 commit 37919be

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

library/linux/src/embedder.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,6 @@ static void GLFWKeyCallback(GLFWwindow *window, int key, int scancode,
155155
GetSavedEmbedderState(window)->keyboard_hook_handlers) {
156156
handler->KeyboardHook(window, key, scancode, action, mods);
157157
}
158-
if (key == GLFW_KEY_ESCAPE && action == GLFW_PRESS) {
159-
glfwSetWindowShouldClose(window, GLFW_TRUE);
160-
}
161158
}
162159

163160
static bool GLFWMakeContextCurrent(void *user_data) {

0 commit comments

Comments
 (0)