Weird TextButton problem in Logic and Live


#1

I have an AU with a number of ordinary TextButtons on it. One specific button (although I can’t figure out what makes this button differ from all the others) reacts to the “Enter” key in both Logic and Live, which is of course not what I want. It does not show this behaviour in AUlab, and also not in the VST version. From the call stack it looks like a normal mouse-down event… can’t really see what’s going on here. Any ideas?


#2

All buttons will react to that key if they have the keyboard focus - maybe just try setWantsKeyboardFocus (false) on them?


#3

Okay, never occured to me… thanks!