mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 01:45:36 +00:00
ui/app,ui/key: move TextInputState from key to internal package
Clients have no need for the TextInputState type. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+3
-4
@@ -317,11 +317,10 @@ func (w *window) setAnimating(anim bool) {
|
||||
w.animating = anim
|
||||
}
|
||||
|
||||
func (w *window) setTextInput(s key.TextInputState) {
|
||||
switch s {
|
||||
case key.TextInputOpen:
|
||||
func (w *window) showTextInput(show bool) {
|
||||
if show {
|
||||
w.focus()
|
||||
case key.TextInputClose:
|
||||
} else {
|
||||
w.blur()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user