From 037243d61315957145c1722cbf5a451cb9f1564a Mon Sep 17 00:00:00 2001 From: Francisco Magdaleno Date: Thu, 6 Dec 2018 11:00:56 -0800 Subject: [PATCH] [linux] Stop terminating the app when user types the ESC key. --- library/linux/src/embedder.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/library/linux/src/embedder.cc b/library/linux/src/embedder.cc index 41e36ef97..3bd1b4494 100644 --- a/library/linux/src/embedder.cc +++ b/library/linux/src/embedder.cc @@ -155,9 +155,6 @@ static void GLFWKeyCallback(GLFWwindow *window, int key, int scancode, GetSavedEmbedderState(window)->keyboard_hook_handlers) { handler->KeyboardHook(window, key, scancode, action, mods); } - if (key == GLFW_KEY_ESCAPE && action == GLFW_PRESS) { - glfwSetWindowShouldClose(window, GLFW_TRUE); - } } static bool GLFWMakeContextCurrent(void *user_data) {