[GH-ISSUE #1132] No Means Of Unsetting lastFinishedKey in Form #822

Open
opened 2026-03-04 01:07:58 +03:00 by kerem · 0 comments
Owner

Originally created by @bn-bmagee on GitHub (Nov 10, 2025).
Original GitHub issue: https://github.com/rivo/tview/issues/1132

Best I can tell there is no means of setting or unsetting lastFinishedKey in a Form, which means that whenever Focus is called on the Form there will be additional behavior that can't be avoided. I think that's what's getting me right now; I'm trying to set the item that will be focused when the user returns to a form but I'm getting focus on an entirely different element instead. If I were to reimplement this I would put the input handling entirely within the InputHandler(), but I'm sure you have your reasons for tying it into Focus directly.

Originally created by @bn-bmagee on GitHub (Nov 10, 2025). Original GitHub issue: https://github.com/rivo/tview/issues/1132 Best I can tell there is no means of setting or unsetting lastFinishedKey in a Form, which means that whenever Focus is called on the Form there will be additional behavior that can't be avoided. I _think_ that's what's getting me right now; I'm trying to set the item that will be focused when the user returns to a form but I'm getting focus on an entirely different element instead. If I were to reimplement this I would put the input handling entirely within the InputHandler(), but I'm sure you have your reasons for tying it into Focus directly.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tview#822
No description provided.