Add shared primary voice profiles and editor

This commit is contained in:
Storm Dragon committed 2026-11-15 14:13:17 -05:00
1 parent 5ca137c879
commit 03896de84e
7 files changed
+590 -4

No files matched your search

+21
View File
@@ -175,6 +175,27 @@ func (s *Session) Focused_control() (Control, bool) {
return control, true
}
// Focus_control restores a host's focus after returning from a child dialog.
func (s *Session) Focus_control(tabID, controlID string) bool {
if s.closed {
return false
}
for ti, tab := range s.form.Tabs {
if tab.ID != tabID {
continue
}
for ci, control := range tab.Controls {
if control.ID == controlID && !control.Hidden && !control.Disabled {
s.tab, s.focus = ti, ci
s.cursor = len([]rune(control.Text))
s.anchor = s.cursor
return true
}
}
}
return false
}
// Set_choices updates an asynchronous grid without moving keyboard focus or
// discarding its search. Keep the selected word when it still matches.
func (s *Session) Set_choices(tabID, controlID string, choices []Choice) {