-
|
Hello, I would like to ask if it's possible to replace behavior of quitting application or get a signal whenever application quit is requested ? In source code I can see that it just does Terminal.Gui/Terminal.Gui/App/Application.Keyboard.cs Lines 217 to 225 in b3aa9c5 Thank you in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
You can do it like this https://github.com/gui-cs/TerminalGuiDesigner/blob/v2/src%2FUI%2FEditor.cs#L905 |
Beta Was this translation helpful? Give feedback.
-
|
Or, at the |
Beta Was this translation helpful? Give feedback.
-
|
Or, ... You can call |
Beta Was this translation helpful? Give feedback.
Or, ...
You can call
Application.KeyBindings.ReplaceCommandsand replace the default logic forCommand.Quit. However, this will not catch cases where some other part of your code directly callsRequestStop.