I have been searching for a while how to disable F1 - F5. Anyone knows how?
after 3 hours searching here is the full answer:
[link text][1]
Thank you
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 only.)
Appreciated @LORDROACH ! (simply prefixing them with a minus sign worked for me in UE4.25)
The important thing is to do that in the folder under UE_4.xx and not get confused with the seemingly same file under the “Launcher” folder.
The compilation of answers provided in this topic into complete and simple solution:
tl:dr; To disable actions on F1~F5 - put the snippet below into %YourProject%/Config/DefaultInput.ini
. That’s all.
The snippet @Exdraz provided is correct. It removes the old bindings on F1~F5 and create the new bindings on Ctrl+F1~F5. Here is the text version of it:
[/Script/Engine.PlayerInput]
-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")
+DebugExecBindings=(Key=F1,Command="viewmode wireframe", Control=True)
+DebugExecBindings=(Key=F2,Command="viewmode unlit", Control=True)
+DebugExecBindings=(Key=F3,Command="viewmode lit", Control=True)
+DebugExecBindings=(Key=F4,Command="viewmode lit_detaillighting", Control=True)
+DebugExecBindings=(Key=F5,Command="viewmode shadercomplexity", Control=True)
idk about ue4, but on ue5.3.2 the are no problems with putting it into /Config/DefaultInput.ini
in project folder - it works fine.