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