From 77bdbac2445242a786f595db686ea4603305aca1 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 15 Oct 2023 02:23:27 +0900 Subject: [PATCH] Revert "internal/ui: remove an unused function" This reverts commit df3a1c3cddad4c1d8bed0a0ff9c1b8839b2a5883. Reason: compile failure: UpdateInputFromEvent was used from textinput --- internal/ui/input_js.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/ui/input_js.go b/internal/ui/input_js.go index c10d34de5..1e1a22354 100644 --- a/internal/ui/input_js.go +++ b/internal/ui/input_js.go @@ -227,6 +227,10 @@ func (u *userInterfaceImpl) keyName(key Key) string { return n.String() } +func UpdateInputFromEvent(e js.Value) { + theUI.updateInputFromEvent(e) +} + func (u *userInterfaceImpl) saveCursorPosition() { u.savedCursorX = u.inputState.CursorX u.savedCursorY = u.inputState.CursorY