Skip to content

Commit

Permalink
Merge branch 'main' into set-value-modal
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgerojas26 committed Oct 14, 2024
2 parents 88a97da + 176b826 commit 213b63b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/ConnectionForm.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func NewConnectionForm(connectionPages *models.ConnectionPages) *ConnectionForm
func (form *ConnectionForm) inputCapture(connectionPages *models.ConnectionPages) func(event *tcell.EventKey) *tcell.EventKey {
return func(event *tcell.EventKey) *tcell.EventKey {
if event.Key() == tcell.KeyEsc {
connectionPages.SwitchToPage(pageNameConnections)
connectionPages.SwitchToPage(pageNameConnectionSelection)
} else if event.Key() == tcell.KeyF1 || event.Key() == tcell.KeyEnter {
connectionName := form.GetFormItem(0).(*tview.InputField).GetText()

Expand Down Expand Up @@ -152,7 +152,7 @@ func (form *ConnectionForm) inputCapture(connectionPages *models.ConnectionPages
}

ConnectionListTable.SetConnections(newDatabases)
connectionPages.SwitchToPage(pageNameConnections)
connectionPages.SwitchToPage(pageNameConnectionSelection)

} else if event.Key() == tcell.KeyF2 {
connectionString := form.GetFormItem(1).(*tview.InputField).GetText()
Expand Down

0 comments on commit 213b63b

Please sign in to comment.