Change focus after tab selection in app designer
31 views (last 30 days)
I'm workin in app designer, and have an app that has a tabgroup component with a corresponding selectionchanged callback function. I also have a windowskeypressfnc to allow hotkeys for specific buttons in the app once the tab is changed.
The issue I'm running into is that the hotkeys don't work after switching tabs (presumably because the focus is still on the tab). I've seen a few threads (e.g., here) on the issue of focus - but what I'm wondering is whether I can add a line of code to the selectionchanged callback function of the tab group to shift focus to the tab figure to allow the windowskeypressfnc to work appropriately? I've tried calling button functions and other attempts, but they don't seem to work.
Thinking something like:
function TabGroupSelectionChanged(app, event)
%code to shift focus to something inside the tab to allow windowskeypressfcn to work.
%in GUIDE - UIcontrol would have done it.