update function name
This commit is contained in:
parent
5837c637a1
commit
cf8d781f58
1 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ func (a *App) inputCapture() func(event *tcell.EventKey) *tcell.EventKey {
|
||||||
case key == tcell.KeyESC:
|
case key == tcell.KeyESC:
|
||||||
a.escape()
|
a.escape()
|
||||||
case key == tcell.KeyEnter:
|
case key == tcell.KeyEnter:
|
||||||
a.selectHandle()
|
a.selected()
|
||||||
}
|
}
|
||||||
|
|
||||||
return event
|
return event
|
||||||
|
@ -90,7 +90,7 @@ func (a *App) quit() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *App) selectHandle() {
|
func (a *App) selected() {
|
||||||
switch a.mode {
|
switch a.mode {
|
||||||
case normal:
|
case normal:
|
||||||
card, ok := a.getFocusedCard()
|
card, ok := a.getFocusedCard()
|
||||||
|
|
Loading…
Reference in a new issue