Skip to content

Commit

Permalink
Change back button to esc
Browse files Browse the repository at this point in the history
  • Loading branch information
dbolson committed Apr 3, 2024
1 parent de11888 commit d698e6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions internal/quickstart/choose_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ func NewChooseSDKModel(selectedIndex int) tea.Model {
l.SetShowStatusBar(false)
l.SetFilteringEnabled(false) // TODO: try to get filtering working
l.Paginator.PerPage = 5
// disable these because we've overridden "left" to go back and leaving NextPage without
// PrevPage would be confusing
l.KeyMap.PrevPage.SetEnabled(false)
l.KeyMap.NextPage.SetEnabled(false)

return chooseSDKModel{
list: l,
Expand Down
4 changes: 2 additions & 2 deletions internal/quickstart/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ type keyMap struct {

var keys = keyMap{
Back: key.NewBinding(
key.WithKeys("left"),
key.WithHelp("back", "go back"),
key.WithKeys("esc"),
key.WithHelp("esc", "go back"),
),
Enter: key.NewBinding(
key.WithKeys("enter"),
Expand Down

0 comments on commit d698e6f

Please sign in to comment.