From 5895fb6adc83811104843f8e489c67dfe59d0663 Mon Sep 17 00:00:00 2001 From: Ray Date: Mon, 9 Mar 2020 13:01:10 +0100 Subject: [PATCH] Address issue #1125 --- src/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.c b/src/core.c index 0cd5ef33..3053a218 100644 --- a/src/core.c +++ b/src/core.c @@ -4638,7 +4638,7 @@ static void ProcessKeyboard(void) if (keysBuffer[i] == 0x1b) { // 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 { if (keysBuffer[i + 1] == 0x5b) // Special function key