aboutsummaryrefslogtreecommitdiff
path: root/go/ui/textInput_generic.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/ui/textInput_generic.go')
-rw-r--r--go/ui/textInput_generic.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/go/ui/textInput_generic.go b/go/ui/textInput_generic.go
new file mode 100644
index 00000000..7102eb82
--- /dev/null
+++ b/go/ui/textInput_generic.go
@@ -0,0 +1,16 @@
+//go:build !wasm
+// +build !wasm
+
+package ui
+
+func (ti *TextInput) Focus(focus bool) {
+ ti.focused = focus
+}
+
+func (*TextInput) IsUpdatable() bool { return true }
+func (ti *TextInput) Update() error {
+ if ti.focused {
+ }
+
+ return nil
+}