# Enhanced input feature not working properly when switching active input contexts 

**URL:** <https://forums.unrealengine.com/t/enhanced-input-feature-not-working-properly-when-switching-active-input-contexts/2723268>\
**Category:** Programming & Scripting\
**Tags:** Epic-Pro-Support, unreal-engine, question\
**Created:** [April 8, 2026, 9:02am UTC](https://forums.unrealengine.com/t/enhanced-input-feature-not-working-properly-when-switching-active-input-contexts/2723268 "2026-04-08T09:02:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [April 8, 2026, 9:02am UTC](https://forums.unrealengine.com/t/enhanced-input-feature-not-working-properly-when-switching-active-input-contexts/2723268/1 "2026-04-08T09:02:26Z")

</div>

The problem is about a feature of the EnhancedInput system about ignoring pressed keys till release, specifically when changing active contexts and mappings are rebuilt.(FModifyContextOptions::bIgnoreAllPressedKeysUntilRelease).

In our use case, we have an input context always active, containing an input action IA\_Test with trigger Pressed (which should therefore trigger only once till is pressed down).

When removing/adding another input context, while the pressed action has already triggered (IA\_Test associated input is kept down the whole time and never released), the action gets re-triggered. even if the flag bIgnoreAllPressedKeysUntilRelease is set true.

From internal tests, results is that a flag value is being lost in the process of recreating mappings of active contexts, specifically in IEnhancedInputSubsystemInterface::RebuildControlMappings, when the flag bShouldBeIgnored of mapping may be lost; a fix has been proposed in the attached image, adding the following snippet just under fix labeled “Fix for UE-270589”, to keep flag value consistent.

This should prevent the bug and ensure the feature works properly.

`OldMappings[Idx].bShouldBeIgnored = Mapping.bShouldBeIgnored;`

[immagine.png](https://forums.unrealengine.com/uploads/short-url/7rguckbLFGOr9Tz9F0xoHV7afOz.png)(44.5 KB)  
[TP\_Blank.zip](https://forums.unrealengine.com/uploads/short-url/nPf6rxAyrk44cIJAYtu23bUiWdd.zip)(24 MB)

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [April 8, 2026, 9:02am UTC](https://forums.unrealengine.com/t/enhanced-input-feature-not-working-properly-when-switching-active-input-contexts/2723268/2 "2026-04-08T09:02:31Z")

</div>

**Steps to Reproduce**

Compile / Open the attached project

Start play

Focus viewport (mouse click)

Keep T pressed for wrong behavior (input action keeps re-triggering)

Keep R pressed for expected behavior (input action trigger only once)

---

<div class="post-metadata">

**Author:** ![BenjaFriend22](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/benjafriend22/32/915021_2.png) [@BenjaFriend22](https://forums.unrealengine.com/u/BenjaFriend22)\
**Post date:** [April 13, 2026, 7:55pm UTC](https://forums.unrealengine.com/t/enhanced-input-feature-not-working-properly-when-switching-active-input-contexts/2723268/3 "2026-04-13T19:55:33Z")

</div>

Hey there!

Thank for you for the details bug report and repro project. There is an existing ticket about this (I actually just made it in response to another user last week) here: [https://issues.unrealengine.com/issue/UE\-372464](https://issues.unrealengine.com/issue/UE%5C-372464)

I will add your proposed fix and details to it for consideration.

Your fix does seem like it would work and be safe to use, but if you are interested, [this is the other post where the user also has another work [Content removed]

Thanks again!

Ben

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [April 20, 2026, 3:47pm UTC](https://forums.unrealengine.com/t/enhanced-input-feature-not-working-properly-when-switching-active-input-contexts/2723268/4 "2026-04-20T15:47:05Z")

</div>

Hi, sorry for the late answer.

We took a look at some of your latest CL about Enhanced Input (52794595, 52691399, 52794904, 52814764, 52871676) and the original bug we had seems to not reproduce anymore.

I’m not sure about the side-cases but i would consider the matter solved with those changes.

Thanks,

Ivan.

---

<div class="post-metadata">

**Author:** ![BenjaFriend22](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/benjafriend22/32/915021_2.png) [@BenjaFriend22](https://forums.unrealengine.com/u/BenjaFriend22)\
**Post date:** [April 20, 2026, 5:55pm UTC](https://forums.unrealengine.com/t/enhanced-input-feature-not-working-properly-when-switching-active-input-contexts/2723268/5 "2026-04-20T17:55:09Z")

</div>

Great! I’m glad that worked out. I will mark this issue as closed then.

Thanks again for the bug report!
