don't add a line break to the status message when we press ctrl+enter. Fixes #3106

This commit is contained in:
Yann Leboulanger 2007-05-09 12:37:06 +00:00
parent 060d5fa087
commit e8fb4160d1
1 changed files with 2 additions and 0 deletions

View File

@ -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')