mirror of
https://github.com/VladimirMarkelov/clui.git
synced 2025-04-26 13:49:01 +08:00
add event for composer to close the top window
This commit is contained in:
parent
f677db2337
commit
4425b1bdb7
@ -584,6 +584,8 @@ func (c *Composer) processKey(ev Event) {
|
|||||||
|
|
||||||
func ProcessEvent(ev Event) {
|
func ProcessEvent(ev Event) {
|
||||||
switch ev.Type {
|
switch ev.Type {
|
||||||
|
case EventCloseWindow:
|
||||||
|
comp.closeTopWindow()
|
||||||
case EventRedraw:
|
case EventRedraw:
|
||||||
RefreshScreen()
|
RefreshScreen()
|
||||||
case EventResize:
|
case EventResize:
|
||||||
|
@ -286,6 +286,8 @@ const (
|
|||||||
EventDialogClose
|
EventDialogClose
|
||||||
// Close application
|
// Close application
|
||||||
EventQuit
|
EventQuit
|
||||||
|
// Close top window - or application is there is only one window
|
||||||
|
EventCloseWindow
|
||||||
)
|
)
|
||||||
|
|
||||||
// ConfirmationDialog and SelectDialog exit codes
|
// ConfirmationDialog and SelectDialog exit codes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user