From 87be2285ce432cfc3f11cb70a317350643186d64 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Fri, 23 Sep 2016 12:40:13 +0200 Subject: [PATCH] Add shortcuts window. Bug 764926 --- po/POTFILES.in | 1 + ui/CMakeLists.txt | 1 + ui/gtk/help-overlay.ui | 342 +++++++++++++++++++++++++++++++++++++++++ ui/gtk/menus.ui | 6 + 4 files changed, 350 insertions(+) create mode 100644 ui/gtk/help-overlay.ui diff --git a/po/POTFILES.in b/po/POTFILES.in index 3019b914..c69530ca 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -386,6 +386,7 @@ src/mailer/main.vala [type: gettext/glade]ui/composer-widget.ui [type: gettext/glade]ui/edit_alternate_emails.glade [type: gettext/glade]ui/find_bar.glade +[type: gettext/glade]ui/gtk/help-overlay.ui [type: gettext/glade]ui/gtk/menus.ui [type: gettext/glade]ui/login.glade [type: gettext/glade]ui/password-dialog.glade diff --git a/ui/CMakeLists.txt b/ui/CMakeLists.txt index 8171ed17..6e93e50e 100644 --- a/ui/CMakeLists.txt +++ b/ui/CMakeLists.txt @@ -11,6 +11,7 @@ set(RESOURCE_LIST STRIPBLANKS "edit_alternate_emails.glade" STRIPBLANKS "find_bar.glade" STRIPBLANKS "folder-popover.ui" + STRIPBLANKS "gtk/help-overlay.ui" STRIPBLANKS "gtk/menus.ui" STRIPBLANKS "login.glade" STRIPBLANKS "password-dialog.glade" diff --git a/ui/gtk/help-overlay.ui b/ui/gtk/help-overlay.ui new file mode 100644 index 00000000..6c360fb0 --- /dev/null +++ b/ui/gtk/help-overlay.ui @@ -0,0 +1,342 @@ + + + + + + True + 12 + conversation + Conversation Shortcuts + + + True + General + + + True + Move focus to the next/previous pane + F6 <Shift>F6 + + + + + True + Move focus to conversation list + <primary>B + + + + + True + Detach composer window + <primary>D + + + + + True + Close composer window + <primary>W Escape + + + + + True + Show keyboard shortcuts + <Primary>F1 <Primary>question + + + + + True + Show help + F1 + + + + + True + Quit the application + <primary>Q + + + + + + + True + Search + + + True + Jump to search box + <primary>S + + + + + True + Find in current conversation + <primary>F + + + + + True + Find next/previous in current conversation + <primary>G <primary><Shift>G + + + + + + + True + Actions + + + True + Compose a new message + <primary>N N + + + + + True + Reply to sender + <primary>R R + + + + + True + Reply to all + <primary><Shift>R <Shift>R + + + + + True + Forward + <primary>L F + + + + + True + Archive + A + + + + + True + Move to trash + Delete Back + + + + + True + Toggle spam + <primary>J exclam + + + + + True + Open Move Conversation menu + M + + + + + True + Open Label Conversation menu + L + + + + + + True + Mark read + <primary>I <Shift>I + + + + + True + Mark unread + <primary>U <Shift>U + + + + + + + True + View + + + True + Zoom in + <primary>equal equal + + + + + True + Zoom out + <primary>minus minus + + + + + True + Reset zoom + <primary>0 0 + + + + + + + True + Additional Shortcuts + + + True + Star + S + + + + + True + Unstar + D + + + + + True + Delete + <Shift>Delete <Shift>Back + + + + + True + Jump to next (older) conversation + J + + + + + True + Jump to previous (newer) conversation + K + + + + + + + + + True + composer + Composer Shortcuts + + + True + General + + + True + Quote text + <primary>bracketleft + + + + + True + Unquote text + <primary>bracketright + + + + + + + True + Actions + + + True + Send + <primary>Return + + + + + True + Add attachment + <primary>T + + + + + + + True + Rich text mode + + + True + Bold text + <primary>B + + + + + True + Italicize text + <primary>I + + + + + True + Underline text + <primary>U + + + + + True + Strike text + <primary>K + + + + + True + Insert a link + <primary>L + + + + + True + Remove formatting + <primary>space + + + + + + + + \ No newline at end of file diff --git a/ui/gtk/menus.ui b/ui/gtk/menus.ui index 17eacb5d..50aa4e81 100644 --- a/ui/gtk/menus.ui +++ b/ui/gtk/menus.ui @@ -19,6 +19,12 @@
+ + _Keyboard Shortcuts + win.show-help-overlay + <Primary>F1 + action-missing + _Help app.help