summaryrefslogtreecommitdiff
path: root/src/gui_gtk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui_gtk.c')
-rw-r--r--src/gui_gtk.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui_gtk.c b/src/gui_gtk.c
index 1533c647c..326a30cff 100644
--- a/src/gui_gtk.c
+++ b/src/gui_gtk.c
@@ -1287,6 +1287,9 @@ gui_mch_dialog(int type, /* type of dialog */
entry = gtk_entry_new();
gtk_widget_show(entry);
+ /* Make Enter work like pressing OK. */
+ gtk_entry_set_activates_default(GTK_ENTRY(entry), TRUE);
+
text = CONVERT_TO_UTF8(textfield);
gtk_entry_set_text(GTK_ENTRY(entry), (const char *)text);
CONVERT_TO_UTF8_FREE(text);