diff options
Diffstat (limited to 'composer')
-rw-r--r-- | composer/ChangeLog | 6 | ||||
-rw-r--r-- | composer/e-msg-composer.c | 9 |
2 files changed, 15 insertions, 0 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog index a6c54e6784..865e6dea5d 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,9 @@ +2007-06-12 Bastien Nocera <hadess@hadess.net> + + * e-msg-composer.c: (composer_key_pressed): + Add support for the XF86Send multimedia key + (Closes: #442631) + 2007-06-03 Srinivasa Ragavan <sragavan@novell.com> ** Fix for bug #386503 from Matthew Barnes diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index d142c08edb..ac355bbffa 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -3511,6 +3511,15 @@ composer_key_pressed (EMsgComposer *composer, GdkEventKey *event, void *user_dat GtkWidget *widget; EMsgComposerPrivate *p = composer->priv; widget = e_msg_composer_hdrs_get_subject_entry (E_MSG_COMPOSER_HDRS (p->hdrs)); + +#ifdef HAVE_XFREE + if (event->keyval == XF86XK_Send) { + g_signal_emit (GTK_OBJECT (data), signals[SEND], 0); + g_signal_stop_emission_by_name (composer, "key-press-event"); + return TRUE; + } +#endif /* HAVE_XFREE */ + if (event->keyval == GDK_Escape) { do_exit (composer); g_signal_stop_emission_by_name (composer, "key-press-event"); |