Changing input action map on button hold

I’ve run into an unexpected issue while implementing a quick select menu. My intention is for the player to hold a button to open the menu and release it to close it. I have this working fine: the menu opens when the action is performed and closes when the action is canceled.

The issue arises when I try to switch between the gameplay action map and the quick menu action map as the menu opens or closes. Both maps share the same quick menu action/binding, so the menu behavior works as expected. However, I encounter an error that simply states, “Should not get here.” The issue seems to be that the quick menu action falls into the default case of a switch statement over the action state in the ProcessDefaultInteraction function.

I suspect the error occurs because I’m swapping action maps while the action in the original map is still being processed. This raises two questions:

  1. Is there a better way to implement a quick menu (e.g., a radial tool select menu) that avoids putting the input action into this error state?
  2. Is it safe to ignore this error, given that it doesn’t seem to have any functional impact beyond logging the message?

Turns out the answer was pretty simple. Instead of duplicating the action in the two maps. I instead created a new map with common controls that stay enabled.