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