forked from aparoksha/adwaita-swift
Simplify focused modifier
This commit is contained in:
parent
c596504141
commit
eb85f93a9e
@ -160,7 +160,7 @@ extension View {
|
|||||||
focused.wrappedValue = newValue
|
focused.wrappedValue = newValue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if focused.wrappedValue != (gtk_event_controller_focus_contains_focus(controller.pointer) != 0) {
|
if gtk_event_controller_focus_contains_focus(controller.pointer) == 0, focused.wrappedValue {
|
||||||
gtk_widget_grab_focus(storage.pointer?.cast())
|
gtk_widget_grab_focus(storage.pointer?.cast())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user