Hi.
I'm going back to my sequencer project now and I'm not sure how to handle this situation:
I have a text box, i.e. (make-text ...). I want the user to be able to press space to insert a space into the text box when it's selected/focused, but when the text box isn't focused, space should perform a different action.
I also want to be able to switch the currently-focused widget using <Ctrl-tab>. I have the text box, but I also have several canvases ((make-canvas ...)) - four by default, but it's possible for there to be more or less than that. So I'm not sure how to write a function that will cycle through each focusable widget in the correct order. I see that nodgui:bind-tag-set-focus-next is a function that exists and the warning in set-focus-next makes it sound like bind-tag-set-focus-next is what I will need to use, but it seems that it requires the currently-focused widget as its first argument, and I don't think Nodgui has a function to get the currently-focused widget. It looks like Tk has a focus_get function but it seems that Nodgui doesn't have this yet. I tried implementing it myself but I'm pretty sure I"m doing something wrong. I also thought maybe I could just use (event-widget event) in the function that <Ctrl-tab> is being bound to, but event-widget doesn't exist either.
So, I'm curious how you'd handle implementing something like this, if you have any suggestions.