My program has some entry boxes I'm using for keyboard preferences.
After the user types something in one, I'd like to remove the input
focus from it so they'd have to click it again to modify it a second
First I tried:
> entry `set` [widgetHasFocus := False]
But after running this, keyboard input still goes to the entry.
Next I tried to have something else grab the focus. Unfortunately, in
this window, the only other elements are labels. So I tried:
> label `set` [widgetCanFocus := True]
> widgetGrabFocus label
This does not work either (the cursor stays in the entry and keyboard
input still goes there).
I'm very confused as to why these attempts don't work. Do I
misunderstand the way focus works? Is this a bug?
Thanks in advance for your help.