diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-11-14 12:40:17 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-11-14 12:40:17 +0200 |
commit | c9b1a0d3e42d27ec2786103ec3bc812a5d38da6c (patch) | |
tree | 5455f1354e4911d6a52a3ddfba2f405f48e0a1f8 /src/ui/keys.h | |
parent | e093892eddf5481b310aac5d66b775d3e1c013cf (diff) |
Navigating to parent directory or site root
Added keyboard shortcuts for navigating up to the parent directory and to the site root.
Clicking the top banner also navigates to the site root.
IssueID #29
Diffstat (limited to 'src/ui/keys.h')
-rw-r--r-- | src/ui/keys.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/keys.h b/src/ui/keys.h index a4c8f348..5bc9141c 100644 --- a/src/ui/keys.h +++ b/src/ui/keys.h | |||
@@ -32,6 +32,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ | |||
32 | # define nextTab_KeyShortcut SDLK_RIGHTBRACKET, KMOD_SHIFT | KMOD_PRIMARY | 32 | # define nextTab_KeyShortcut SDLK_RIGHTBRACKET, KMOD_SHIFT | KMOD_PRIMARY |
33 | # define navigateBack_KeyShortcut SDLK_LEFT, KMOD_PRIMARY | 33 | # define navigateBack_KeyShortcut SDLK_LEFT, KMOD_PRIMARY |
34 | # define navigateForward_KeyShortcut SDLK_RIGHT, KMOD_PRIMARY | 34 | # define navigateForward_KeyShortcut SDLK_RIGHT, KMOD_PRIMARY |
35 | # define navigateParent_KeyShortcut SDLK_UP, KMOD_PRIMARY | ||
36 | # define navigateRoot_KeyShortcut SDLK_UP, KMOD_SHIFT | KMOD_PRIMARY | ||
35 | # define byWord_KeyModifier KMOD_ALT | 37 | # define byWord_KeyModifier KMOD_ALT |
36 | # define byLine_KeyModifier KMOD_PRIMARY | 38 | # define byLine_KeyModifier KMOD_PRIMARY |
37 | #else | 39 | #else |
@@ -40,6 +42,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ | |||
40 | # define nextTab_KeyShortcut SDLK_PAGEDOWN, KMOD_PRIMARY | 42 | # define nextTab_KeyShortcut SDLK_PAGEDOWN, KMOD_PRIMARY |
41 | # define navigateBack_KeyShortcut SDLK_LEFT, KMOD_ALT | 43 | # define navigateBack_KeyShortcut SDLK_LEFT, KMOD_ALT |
42 | # define navigateForward_KeyShortcut SDLK_RIGHT, KMOD_ALT | 44 | # define navigateForward_KeyShortcut SDLK_RIGHT, KMOD_ALT |
45 | # define navigateParent_KeyShortcut SDLK_UP, KMOD_ALT | ||
46 | # define navigateRoot_KeyShortcut SDLK_UP, KMOD_SHIFT | KMOD_ALT | ||
43 | # define byWord_KeyModifier KMOD_CTRL | 47 | # define byWord_KeyModifier KMOD_CTRL |
44 | # define byLine_KeyModifier 0 | 48 | # define byLine_KeyModifier 0 |
45 | #endif | 49 | #endif |