#Two Issues - PopupMenu Not Working, and Saving When It Shouldn't

1 messages · Page 1 of 1 (latest)

buoyant forum
#

Hi, I'm having two strange issues with my project. One of them has been there for a while, and the other was introduced in my most recent commit, which is unfortunately quite a large one.

Firstly, I have an InputMap set up to listen for "ctrl-s" to begin saving, but it triggers the event when "s" is pressed by itself (first two screenshots). (SOLVED!)

Secondly, and more bizarrely, I have a PopupMenu intended to show a bunch of options and produce certain behaviour based on which is clicked. The menu button is, however, completely unresponsive - not even mousing over it will produce any results. I'm happy to share version history to show what changes I've made, since when I roll back to my previous commit (and lose about three hours of work) it works fine.

compact elk
#

try event.is_action("SaveShortcut", true)

buoyant forum
#

Thank you! I knew it would be something silly like that

#

That's the first problem fixed

compact elk
#

for the second issue, it might be a simple mouse filter issue. look into the Debugger > Misc tab when you click over it, it will show you the Control "stealing" the input

buoyant forum
compact elk
#

change the mouse filter to Ignore on the Buttons control

#

repeat this investigation until your menu button works

buoyant forum
#

Oh

#

Yeah that makes a lot of sense

compact elk
#

actually no

#

i don't understand why these Control nodes have a mouse filter STOP by default

#

it does NOT make sense ^^

#

it makes sense for buttons, texturerect, etc

buoyant forum
#

Ehehehehe, thank you very much anyway

#

That's both issues solved