Issue with umenu updating when contents change

FRANZ BERNARD's icon

Hi everyone,

I have a umenu object that is dynamically populated with chord names when I press a key on a MIDI keyboard, and this works fine.

However, I'm facing an issue: the output of the chord name (Menu item text) only occurs after I release the key. I need it to output the chord name immediately when I press the key, rather than waiting for the release. Is it possible to get the output at the time of the key press?

It only works well when the contents of the umenu do not change.

Thanks