shithub: choc

Download patch

ref: 75499e054a80aff7add8a0e634f4cdcb3c77274c
parent: bef0c38072cc14a84b6d086db73dbddcb3d40a2d
author: Julia Nechaevskaya <julia.nechaevskaya@live.com>
date: Thu Jan 9 15:10:38 EST 2020

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)