diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2022-08-22 12:01:53 +0200 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2022-08-25 14:11:53 +0200 |
commit | 032683a824918f4d32b1bb0a7ff1a751c3cbe6eb (patch) | |
tree | a567e194f4755a9934f21a413766a196db5591ee | |
parent | d3a604bbd7a7dd3a7ef0caed539609b7d2a4bcd5 (diff) | |
download | NetworkManager-032683a824918f4d32b1bb0a7ff1a751c3cbe6eb.tar.gz |
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
-rw-r--r-- | src/nmtui/nmt-editor.c | 2 | ||||
-rw-r--r-- | src/nmtui/nmtui-edit.c | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/nmtui/nmt-editor.c b/src/nmtui/nmt-editor.c index 427ac0178b..0fef4e6c3e 100644 --- a/src/nmtui/nmt-editor.c +++ b/src/nmtui/nmt-editor.c @@ -107,6 +107,8 @@ nmt_editor_new(NMConnection *connection) _("Edit Connection"), "fullscreen-vertical", TRUE, + "escape-exits", + TRUE, NULL); } diff --git a/src/nmtui/nmtui-edit.c b/src/nmtui/nmtui-edit.c index ec80a20359..954b0cc26d 100644 --- a/src/nmtui/nmtui-edit.c +++ b/src/nmtui/nmtui-edit.c @@ -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); } |