Browse Source

Address issue #1125

Ray 5 years ago
parent
commit
5895fb6adc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/core.c

+ 1 - 1
src/core.c

@@ -4638,7 +4638,7 @@ static void ProcessKeyboard(void)
         if (keysBuffer[i] == 0x1b)
         if (keysBuffer[i] == 0x1b)
         {
         {
             // Detect ESC to stop program
             // Detect ESC to stop program
-            if (bufferByteCount == 1) CORE.Input.Keyboard.currentKeyState[256] = 1; // raylib key: KEY_ESCAPE
+            if (bufferByteCount == 1) CORE.Input.Keyboard.currentKeyState[CORE.Input.Keyboard.exitKey] = 1;
             else
             else
             {
             {
                 if (keysBuffer[i + 1] == 0x5b)    // Special function key
                 if (keysBuffer[i + 1] == 0x5b)    // Special function key