tui: allow exiting add/edit connection dialog with ESC key

No reason this wouldn't be allowed.

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1339
This commit is contained in:
Lubomir Rintel 2022-08-22 12:01:53 +02:00
parent d3a604bbd7
commit 032683a824
2 changed files with 8 additions and 1 deletions

View file

@ -107,6 +107,8 @@ nmt_editor_new(NMConnection *connection)
_("Edit Connection"),
"fullscreen-vertical",
TRUE,
"escape-exits",
TRUE,
NULL);
}

View file

@ -398,7 +398,12 @@ nmt_add_connection(void)
{
NmtNewtForm *form;
form = g_object_new(NMT_TYPE_ADD_CONNECTION, "title", _("New Connection"), NULL);
form = g_object_new(NMT_TYPE_ADD_CONNECTION,
"title",
_("New Connection"),
"escape-exits",
TRUE,
NULL);
nmt_newt_form_show(form);
g_object_unref(form);
}