Add KP_Enter as accepted shortcut for sending (fixes NB#100845)
authorJose Dapena Paz <jdapena@igalia.com>
Wed, 25 Mar 2009 21:29:33 +0000 (21:29 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Wed, 25 Mar 2009 21:29:33 +0000 (21:29 +0000)
pmo-trunk-r8390

src/hildon2/ui/modest-msg-edit-window-ui.xml
src/widgets/modest-msg-edit-window-ui.h

index e455f95..19364a0 100644 (file)
@@ -91,6 +91,7 @@
   <accelerator name="AccelZoomPlus" action="ZoomPlus"/>
   <accelerator name="AccelToggleFullscreen" action="ToggleFullscreen"/>
   <accelerator name="AccelCloseWindow" action="CloseWindowShortcut"/>
+  <accelerator name="AccelSend" action="SendShortcut"/>
   <accelerator name="CutMenu" action="Cut"/>
   <accelerator name="CopyMenu" action="Copy"/>
   <accelerator name="PasteMenu" action="Paste"/>
index 1443eb8..ee73572 100644 (file)
@@ -97,6 +97,7 @@ static const GtkActionEntry modest_msg_edit_action_entries [] = {
        /* KEY ACCELERATOR ACTIONS */
        { "ZoomPlus", NULL, N_("Zoom +"), "F7", NULL, G_CALLBACK (modest_ui_actions_on_zoom_plus) },
        { "ZoomMinus", NULL, N_("Zoom -"), "F8", NULL, G_CALLBACK (modest_ui_actions_on_zoom_minus) },
+       { "SendShortcut", NULL, N_("Send email"), "<CTRL>KP_Enter", NULL, G_CALLBACK (modest_ui_actions_on_send) },
        { "ToggleFullscreen", NULL, N_("Toggle fullscreen"), "F6", NULL, G_CALLBACK (modest_ui_actions_on_change_fullscreen) },
        { "CloseWindowShortcut", NULL, NULL, "Escape", NULL, NULL },