fix ENTER key processing in TableView
This commit is contained in:
parent
a2c441f678
commit
8c84a8b2ae
|
@ -1,3 +1,11 @@
|
|||
2018-09-30 - version 0.9.0 RC4
|
||||
[+] New feature: borderless windows (thanks to Mark D Horn)
|
||||
[+] ScrollTo API for scrollable frame
|
||||
[*] Clipper fix
|
||||
[*] ChildAt should skip hidden controls and skip a control if its parent
|
||||
is invisble
|
||||
[*] Enter key did not work in TableView control
|
||||
|
||||
2018-09-06 - version 0.9.0 RC3 (Thanks to Leandro Dorileo)
|
||||
[+] New big feature: scrollable Frame
|
||||
[+] Custom theme support: overriding theme colors with custom ones
|
||||
|
|
|
@ -797,8 +797,7 @@ func (l *TableView) ProcessEvent(event Event) bool {
|
|||
case term.KeyPgup:
|
||||
l.moveUp(l.height - 3)
|
||||
return true
|
||||
case term.KeyCtrlM:
|
||||
case term.KeyF2:
|
||||
case term.KeyCtrlM, term.KeyF2:
|
||||
if l.selectedRow != -1 && l.selectedCol != -1 && l.onAction != nil {
|
||||
ev := TableEvent{Action: TableActionEdit, Col: l.selectedCol, Row: l.selectedRow}
|
||||
l.onAction(ev)
|
||||
|
|
Loading…
Reference in New Issue