# Disable F1 to F5

**URL:** <https://forums.unrealengine.com/t/disable-f1-to-f5/429057>\
**Category:** Getting Started & Setup\
**Tags:** disable, unreal-engine, question\
**Created:** [July 10, 2018, 12:06am UTC](https://forums.unrealengine.com/t/disable-f1-to-f5/429057 "2018-07-10T00:06:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Exdraz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Exdraz](https://forums.unrealengine.com/u/Exdraz)\
**Post date:** [July 10, 2018, 12:06am UTC](https://forums.unrealengine.com/t/disable-f1-to-f5/429057/1 "2018-07-10T00:06:52Z")

</div>

I have been searching for a while how to disable F1 - F5. Anyone knows how?

---

<div class="post-metadata">

**Author:** ![Exdraz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Exdraz](https://forums.unrealengine.com/u/Exdraz)\
**Post date:** [July 10, 2018, 12:08am UTC](https://forums.unrealengine.com/t/disable-f1-to-f5/429057/2 "2018-07-10T00:08:17Z")

</div>

after 3 hours searching here is the full answer:

[link text][1]

![246771-code.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/5/9/c5936a414f06ec026c96f732d11078b84aabf96b.png)

---

<div class="post-metadata">

**Author:** ![1343706751](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@1343706751](https://forums.unrealengine.com/u/1343706751)\
**Post date:** [December 12, 2018, 10:22am UTC](https://forums.unrealengine.com/t/disable-f1-to-f5/429057/3 "2018-12-12T10:22:50Z")

</div>

Thank you

---

<div class="post-metadata">

**Author:** ![LORDROACH](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lordroach/32/705101_2.png) [@LORDROACH](https://forums.unrealengine.com/u/LORDROACH)\
**Post date:** [March 16, 2019, 1:35am UTC](https://forums.unrealengine.com/t/disable-f1-to-f5/429057/4 "2019-03-16T01:35:33Z")

</div>

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.)

---

<div class="post-metadata">

**Author:** ![Maciek\_Leto](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/maciek_leto/32/1194559_2.png) [@Maciek\_Leto](https://forums.unrealengine.com/u/Maciek_Leto)\
**Post date:** [April 6, 2021, 7:42pm UTC](https://forums.unrealengine.com/t/disable-f1-to-f5/429057/5 "2021-04-06T19:42:27Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![IrSoil](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IrSoil](https://forums.unrealengine.com/u/IrSoil)\
**Post date:** [August 14, 2024, 12:57pm UTC](https://forums.unrealengine.com/t/disable-f1-to-f5/429057/6 "2024-08-14T12:57:38Z")

</div>

_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:

```auto
[/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)

```

> [@LORDROACH](#):
>
> some keys need to be changed manually and cannot be found here.(F5 for example)

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.
