1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Removed capture of Up and Down keys to stop interfering with scrolling

This commit is contained in:
Tim Fitzgerald 2018-07-25 14:54:42 -07:00
parent 7ad7e2ccfd
commit e1030379cd

View File

@ -130,11 +130,11 @@ func (widget *Widget) keyboardIntercept(event *tcell.EventKey) *tcell.EventKey {
return nil return nil
} }
switch event.Key() { switch event.Key() {
case tcell.KeyDown: /* case tcell.KeyDown:
// Select the next item down // Select the next item down
widget.next() widget.next()
widget.display() widget.display()
return nil return nil */
case tcell.KeyEnter: case tcell.KeyEnter:
widget.openTicket() widget.openTicket()
return nil return nil
@ -143,11 +143,11 @@ func (widget *Widget) keyboardIntercept(event *tcell.EventKey) *tcell.EventKey {
widget.unselect() widget.unselect()
widget.display() widget.display()
return event return event
case tcell.KeyUp: /* case tcell.KeyUp:
// Select the next item up // Select the next item up
widget.prev() widget.prev()
widget.display() widget.display()
return nil return nil */
default: default:
// Pass it along // Pass it along
return event return event