Updated Dependency (Fix Ctrl+U Behavior)
This commit is contained in:
parent
4d25527218
commit
8733dcb5e3
2
vendor/github.com/br0xen/termbox-util/termbox_inputfield.go
generated
vendored
2
vendor/github.com/br0xen/termbox-util/termbox_inputfield.go
generated
vendored
@ -141,7 +141,7 @@ func (i *InputField) HandleEvent(event termbox.Event) bool {
|
|||||||
}
|
}
|
||||||
} else if event.Key == termbox.KeyCtrlU {
|
} else if event.Key == termbox.KeyCtrlU {
|
||||||
// Ctrl+U Clears the Input (before the cursor)
|
// Ctrl+U Clears the Input (before the cursor)
|
||||||
i.value = i.value[i.cursor:]
|
i.value = i.value[i.cursor+len(i.value):]
|
||||||
} else {
|
} else {
|
||||||
// Get the rune to add to our value. Space and Tab are special cases where
|
// Get the rune to add to our value. Space and Tab are special cases where
|
||||||
// we can't use the event's rune directly
|
// we can't use the event's rune directly
|
||||||
|
Loading…
x
Reference in New Issue
Block a user