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:
Elias Naur
2019-07-21 13:12:24 +02:00
parent b46bad09bd
commit 9e0e4af8c6
10 changed files with 41 additions and 54 deletions
+3 -4
View File
@@ -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)
}
}