Revert "internal/ui: remove an unused function"

This reverts commit df3a1c3cdd.

Reason: compile failure: UpdateInputFromEvent was used from textinput
This commit is contained in:
Hajime Hoshi 2023-10-15 02:23:27 +09:00
parent df3a1c3cdd
commit 77bdbac244

View File

@ -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