Description

You cannot use the key value combo "Alt + F4" as the input for an Action Mapping, whereas you can use "Alt + other F keys" as inputs. (Alt + F4 is a command to close programs in Windows)

Expected: UE4's "Alt + F4" in-game command to override Windows "Alt + F4" command or to function the same way as the Windows command by allowing the player to use this keyboard combo to quit the game.

Steps to Reproduce
  1. Open blank third person project without starter content in UE4.11
  2. Open Project Settings>Input and Add Action Mapping called "QuitGame"
  3. Add Key Value "F4 + Alt"
  4. Open ThirdPersonCharacter Blueprint> Event Graph
  5. Right click to add Node: InputAction QuitGame
  6. Drag off of "Pressed" and select "Execute Console Command" & type command "quit" in the Command Field
  7. From the Execute Console Command, Specific Player: drag, right-click and select "Get Player Controller."
  8. Compile and Save Character Blueprint/ Save all in Third Person Map
  9. Play in Editor (Standalone Game)
  10. *Without* clicking window with mouse, press space bar to make character jump (shows game is getting input from keyboard)
  11. Press "Alt + F4"
    RESULT: Game does not quit/window does not close
    EXPECTED: Game to quit and game window to close
  12. Select window with mouse
  13. Press Alt + 4 and game will quit, window will close. However this is a native Windows command and is not the function of UE4
    To cross-check
  14. Open Project Settings>Input >Action Mapping "QuitGame"
  15. Change Key Value to "F6 + Alt"
  16. Compile and Save Character Blueprint and Save All in Third Person Map
  17. PIE (Standalone Game)
  18. *Without* clicking on Window with mouse to make active, test keyboard input by pressing the spacebar to make character jump
  19. Press "Alt + F6"
    RESULT: Game quits, window closes as expected

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-29792 in the post.

1
Login to Vote

Won't Fix
ComponentUE - Gameplay - Input
Affects Versions4.11.1
CreatedApr 21, 2016
ResolvedSep 2, 2016
UpdatedJul 14, 2021
View Jira Issue