about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/application.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/application.rs b/src/application.rs
index 2e57935..4edb64d 100755
--- a/src/application.rs
+++ b/src/application.rs
@@ -178,12 +178,14 @@ impl FurtheranceApplication {
             (&gettext("Cancel"), gtk::ResponseType::Reject),
             (&gettext("Delete"), gtk::ResponseType::Accept)
         ]);
+        dialog.set_default_response(gtk::ResponseType::Accept);
 
         let message_area = dialog.message_area().downcast::<gtk::Box>().unwrap();
         let explanation = gtk::Label::new(Some(&gettext("This will delete ALL of your task history.")));
         let instructions = gtk::Label::new(Some(
             &gettext("Type DELETE in the box below then click Delete to proceed.")));
         let delete_entry = gtk::Entry::new();
+        delete_entry.set_activates_default(true);
         message_area.append(&explanation);
         message_area.append(&instructions);
         message_area.append(&delete_entry);