From e8fb4160d1bd8a8ca602c90685d131119c25d822 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 9 May 2007 12:37:06 +0000 Subject: [PATCH] don't add a line break to the status message when we press ctrl+enter. Fixes #3106 --- src/dialogs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dialogs.py b/src/dialogs.py index 5aa0340ee..11755a872 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -380,6 +380,8 @@ class ChangeStatusMessageDialog: event.keyval == gtk.keysyms.KP_Enter: # catch CTRL+ENTER if (event.state & gtk.gdk.CONTROL_MASK): self.window.response(gtk.RESPONSE_OK) + # Stop the event + return True def toggle_sensitiviy_of_save_as_preset(self, widget): btn = self.xml.get_widget('save_as_preset_button')