geary/ui/single-key-shortcuts.css
Michael Gratton 259ebe50fd Re-implement single key shortcuts as a preference
Add new `single-key-shortcuts` GSetting, Application.Configuration
property and add UI for it in the Preferences window. When enabled,
load in new `single-key-shortcuts.css` file that has the appropriate
bindings. Update bindings to match Google's current set, and update
shortcut help to match.
2019-11-21 02:36:09 +11:00

39 lines
1 KiB
CSS

/*
* Copyright 2019 Michael Gratton <mike@vee.net>
*
* This software is licensed under the GNU Lesser General Public License
* (version 2.1 or later). See the COPYING file in this distribution.
*/
/*
* These match Gmail's as of time of commit. Taken from:
* https://support.google.com/mail/answer/6594
*/
@binding-set SingleKeyShortcuts {
bind "r" { "reply-conversation-sender" () };
bind "a" { "reply-conversation-all" () };
bind "f" { "forward-conversation" () };
bind "<Shift>i" { "mark-conversations-read" (1) };
bind "<Shift>u" { "mark-conversations-read" (0) };
bind "s" { "mark-conversations-starred" (1) };
bind "l" { "show-copy-menu" () };
bind "v" { "show-move-menu" () };
bind "e" { "archive-conversations" () };
/* ! */
bind "exclam" { "junk-conversations" () };
/* # */
bind "numbersign" { "delete-conversations" () };
/* / */
bind "slash" { "find" () };
bind "k" { "navigate" (step-up) };
bind "j" { "navigate" (step-down) };
}
window.geary-main-window {
-gtk-key-bindings: SingleKeyShortcuts;
}