mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
do not set focus if already taken by widget
This commit is contained in:
parent
985c41d3b6
commit
76bc33c7e6
@ -34,6 +34,9 @@ func (tracker *FocusTracker) AssignHotKeys() {
|
||||
}
|
||||
|
||||
func (tracker *FocusTracker) FocusOn(char string) {
|
||||
if tracker.focusState() == NonWidget {
|
||||
return
|
||||
}
|
||||
for idx, focusable := range tracker.focusables() {
|
||||
if focusable.FocusChar() == char {
|
||||
tracker.blur(tracker.Idx)
|
||||
|
Loading…
x
Reference in New Issue
Block a user