How to disable F1-F5 keys

Some keys have bindings and need to be changed in the UE4 editor itself. you can do this by starting the editor, select Edit at the top, select Editor Preferences, select Keyboard shortcuts and painfully go through the list and make changes to all the F1 to F12 keys you can see.

Though, some keys need to be changed manually and cannot be found here.(F5 for example)
This worked for me while using the 4.21 engine to change the keys manually.

  • Locate where uE4 is installed - (“Example:C:\Program Files”)\Epic Games\UE_4.21\Engine\BaseInput.ini
  • Create a backup of the file: BaseInput.ini (Create a copy and rename it to BaseInput.Ini-bkup)
  • Open the file BaseInput.ini using notepad and delete the following lines or modify settings to use different keys.

+DebugExecBindings=(Key=F1,Command=“viewmode wireframe”, bIgnoreShift=True)
+DebugExecBindings=(Key=F2,Command=“viewmode unlit”)
+DebugExecBindings=(Key=F3,Command=“viewmode lit”)
+DebugExecBindings=(Key=F4,Command=“viewmode lit_detaillighting”)
+DebugExecBindings=(Key=F5,Command=“viewmode shadercomplexity”)

  • Save the file once modified.
  • Run UE4 editor and keys from F1 to F5 should be disabled. (Within the UE4 editor.)
6 Likes