Cabbage Logo
Back to Cabbage Site

Keyboard Focus Caveat

I noticed in both Cabbage and in HISE, there is a caveat where if I adjust a knob while using the text keyboard to play midi it will switch the focus to the knob and then the system beeps. In order to rapidly test while designing a synth it can be pretty helpful to work this way. I am wondering if the JUCE slider component defaults to getting the keyboard focus, the API doc seems to indicate it might be a JUCE issue.
https://docs.juce.com/master/classComponent.html#a91886a0e276d27719fa8866a95306571
IMHO keyboard focus shouldn’t be pulled from sliders… only from things where I can type in… so maybe I need to take it up with them.

Does this only happen if a number box is also shown below the component but not clicked? I was using the oscilloscope example and the widgets all have a number box below them, but that isn’t where I clicked, I was just tweaking the knobs. I just tried the level knob in there which does not have the number box exposed and it did not have this issue.

Good spot. I’ll take a look.