shithub: choc

Download patch

ref: f81b5c7b3e7c24364fce681ad3d7ba18119a867b
parent: bef0c38072cc14a84b6d086db73dbddcb3d40a2d
parent: 75499e054a80aff7add8a0e634f4cdcb3c77274c
author: Mike Swanson <mikeonthecomputer@gmail.com>
date: Thu Jan 9 21:56:01 EST 2020

Merge pull request #1237 from chocolate-doom/keypad_enter

Allow to toggle full screen using Enter on num. keyboard

--- a/src/i_video.c
+++ b/src/i_video.c
@@ -375,7 +375,8 @@
 #if defined(__MACOSX__)
     flags |= (KMOD_LGUI | KMOD_RGUI);
 #endif
-    return sym->scancode == SDL_SCANCODE_RETURN && (sym->mod & flags) != 0;
+    return (sym->scancode == SDL_SCANCODE_RETURN || 
+            sym->scancode == SDL_SCANCODE_KP_ENTER) && (sym->mod & flags) != 0;
 }
 
 static void I_ToggleFullScreen(void)