mirror of
https://github.com/Gu1llaum-3/sshm.git
synced 2025-10-21 18:37:23 +02:00
Compare commits
1 Commits
v1.9.0-bet
...
main
Author | SHA1 | Date | |
---|---|---|---|
825c534ebe |
@ -284,10 +284,10 @@ func (m *editFormModel) handleEditNavigation(key string) tea.Cmd {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if m.focused >= len(m.hostInputs) {
|
if m.focused >= len(m.hostInputs) {
|
||||||
// Move to properties area, first tab
|
// Move to properties area, keep current tab
|
||||||
m.focusArea = focusAreaProperties
|
m.focusArea = focusAreaProperties
|
||||||
m.currentTab = 0
|
// Keep the current tab instead of forcing it to 0
|
||||||
m.focused = m.getFirstPropertyForTab(0)
|
m.focused = m.getFirstPropertyForTab(m.currentTab)
|
||||||
} else if m.focused < 0 {
|
} else if m.focused < 0 {
|
||||||
m.focused = len(m.hostInputs) - 1
|
m.focused = len(m.hostInputs) - 1
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user