mirror of
https://github.com/aditya-K2/gspt.git
synced 2026-01-07 21:13:50 -05:00
Fix: Context Menu re-opened after closing.
When "enter" was pressed (i.e an item was selected) the context menu did close but was redrawn when the window was resized. This commit fixes that.
This commit is contained in:
@@ -64,7 +64,7 @@ func (m *Root) AddCenteredWidget(t CenteredWidget) {
|
||||
} else if e.Key() == tcell.KeyEnter {
|
||||
r, _ := p.GetSelection()
|
||||
sHandler(r)
|
||||
closeCtx()
|
||||
deleteCtx()
|
||||
return nil
|
||||
}
|
||||
return e
|
||||
|
||||
Reference in New Issue
Block a user