ui/key: rename TextInputClosed to TextInputClose

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-07-07 15:39:04 +02:00
parent 5b7a7334c8
commit 31418eefbe
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -384,7 +384,7 @@ func (w *window) setTextInput(s key.TextInputState) {
runInJVM(func(env *C.JNIEnv) {
C.gio_jni_CallVoidMethod(env, w.view, w.mshowTextInput)
})
case key.TextInputClosed:
case key.TextInputClose:
runInJVM(func(env *C.JNIEnv) {
C.gio_jni_CallVoidMethod(env, w.view, w.mhideTextInput)
})
+1 -1
View File
@@ -234,7 +234,7 @@ func (w *window) setTextInput(s key.TextInputState) {
switch s {
case key.TextInputOpen:
C.gio_showTextInput(w.view)
case key.TextInputClosed:
case key.TextInputClose:
C.gio_hideTextInput(w.view)
}
}
+1 -1
View File
@@ -322,7 +322,7 @@ func (w *window) setTextInput(s key.TextInputState) {
switch s {
case key.TextInputOpen:
w.focus()
case key.TextInputClosed:
case key.TextInputClose:
w.blur()
}
}
+1 -1
View File
@@ -82,7 +82,7 @@ func (w *Window) SetTextInput(s key.TextInputState) {
if !w.IsAlive() {
return
}
if s != w.inputState && (s == key.TextInputClosed || s == key.TextInputOpen) {
if s != w.inputState && (s == key.TextInputClose || s == key.TextInputOpen) {
w.driver.setTextInput(s)
}
if s == key.TextInputFocus {
+1 -1
View File
@@ -65,7 +65,7 @@ func (q *keyQueue) Frame(root *ui.Ops, events handlerEvents) {
case pri == priNewFocus:
q.state = key.TextInputOpen
case hide:
q.state = key.TextInputClosed
q.state = key.TextInputClose
case changed:
q.state = key.TextInputFocus
default:
+1 -1
View File
@@ -41,7 +41,7 @@ const (
const (
TextInputKeep TextInputState = iota
TextInputFocus
TextInputClosed
TextInputClose
TextInputOpen
)