mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 09:55:40 +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
@@ -235,14 +235,13 @@ func (w *window) isVisible() bool {
|
||||
return w.visible.Load().(bool)
|
||||
}
|
||||
|
||||
func (w *window) setTextInput(s key.TextInputState) {
|
||||
func (w *window) showTextInput(show bool) {
|
||||
if w.view == 0 {
|
||||
return
|
||||
}
|
||||
switch s {
|
||||
case key.TextInputOpen:
|
||||
if show {
|
||||
C.gio_showTextInput(w.view)
|
||||
case key.TextInputClose:
|
||||
} else {
|
||||
C.gio_hideTextInput(w.view)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user