mirror of
https://github.com/Maks1mS/bubbles.git
synced 2025-01-11 14:38:10 +03:00
Remove nonexistant shift+tab binding
This commit is contained in:
parent
d2f8f9f641
commit
943ebe42d2
@ -9,7 +9,6 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
tea.UseSysLog("tea")
|
||||
if err := tea.NewProgram(
|
||||
initialize,
|
||||
update,
|
||||
@ -52,18 +51,14 @@ func update(msg tea.Msg, model tea.Model) (tea.Model, tea.Cmd) {
|
||||
return m, tea.Quit
|
||||
case "tab":
|
||||
fallthrough
|
||||
case "shift+tab":
|
||||
case "enter":
|
||||
|
||||
inputs := []input.Model{
|
||||
m.nameInput,
|
||||
m.emailInput,
|
||||
}
|
||||
|
||||
if msg.String() == "tab" {
|
||||
m.index++
|
||||
} else {
|
||||
m.index--
|
||||
}
|
||||
if m.index > len(inputs)-1 {
|
||||
m.index = 0
|
||||
} else if m.index < 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user