Skip to content
Permalink
Browse files

Merge pull request #1237 from chocolate-doom/keypad_enter

Allow to toggle full screen using Enter on num. keyboard
  • Loading branch information
chungy committed Jan 10, 2020
2 parents bef0c38 + 75499e0 commit f81b5c7b3e7c24364fce681ad3d7ba18119a867b
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/i_video.c
@@ -375,7 +375,8 @@ static boolean ToggleFullScreenKeyShortcut(SDL_Keysym *sym)
#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)

1 comment on commit f81b5c7

@Zodomaniac

This comment has been minimized.

Copy link
Contributor

Zodomaniac commented on f81b5c7 Jan 11, 2020

I tried hitting KP_ENTER in game and there is no effect.

Please sign in to comment.
You can’t perform that action at this time.