update function name

This commit is contained in:
Dan Anglin 2024-01-14 12:31:11 +00:00
parent 5837c637a1
commit cf8d781f58
Signed by: dananglin
GPG key ID: 0C1D44CFBEE68638

View file

@ -28,7 +28,7 @@ func (a *App) inputCapture() func(event *tcell.EventKey) *tcell.EventKey {
case key == tcell.KeyESC:
a.escape()
case key == tcell.KeyEnter:
a.selectHandle()
a.selected()
}
return event
@ -90,7 +90,7 @@ func (a *App) quit() {
}
}
func (a *App) selectHandle() {
func (a *App) selected() {
switch a.mode {
case normal:
card, ok := a.getFocusedCard()