diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-11-14 18:34:31 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-11-14 18:34:31 +0200 |
commit | af08260b09786a89007e5fad7116520fab96acbf (patch) | |
tree | ad1c4c4de0d7c06c1e8765b52061b8a0bdf6e677 /src | |
parent | b55c5d8e93c5239d77e9afc1e15b2c7e9449d40e (diff) |
Added keybindings for parent/root navigation
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/keys.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ui/keys.c b/src/ui/keys.c index d759d40e..98a28825 100644 --- a/src/ui/keys.c +++ b/src/ui/keys.c | |||
@@ -65,8 +65,10 @@ static void bindDefaults_(void) { | |||
65 | bindLabel_Keys(11, "scroll.step arg:1", SDLK_DOWN, 0, "Scroll down"); | 65 | bindLabel_Keys(11, "scroll.step arg:1", SDLK_DOWN, 0, "Scroll down"); |
66 | bindLabel_Keys(20, "scroll.page arg:-1", SDLK_PAGEUP, 0, "Scroll up half a page"); | 66 | bindLabel_Keys(20, "scroll.page arg:-1", SDLK_PAGEUP, 0, "Scroll up half a page"); |
67 | bindLabel_Keys(21, "scroll.page arg:1", SDLK_PAGEDOWN, 0, "Scroll down half a page"); | 67 | bindLabel_Keys(21, "scroll.page arg:1", SDLK_PAGEDOWN, 0, "Scroll down half a page"); |
68 | bindLabel_Keys(30, "navigate.back", navigateBack_KeyShortcut, "Navigate back"); | 68 | bindLabel_Keys(30, "navigate.back", navigateBack_KeyShortcut, "Go back"); |
69 | bindLabel_Keys(31, "navigate.forward", navigateForward_KeyShortcut, "Navigate forward"); | 69 | bindLabel_Keys(31, "navigate.forward", navigateForward_KeyShortcut, "Go forward"); |
70 | bindLabel_Keys(32, "navigate.parent", navigateParent_KeyShortcut, "Go to parent directory"); | ||
71 | bindLabel_Keys(33, "navigate.root", navigateRoot_KeyShortcut, "Go to site root"); | ||
70 | /* The following cannot currently be changed (built-in duplicates). */ | 72 | /* The following cannot currently be changed (built-in duplicates). */ |
71 | bind_Keys(1000, "scroll.page arg:-1", SDLK_SPACE, KMOD_SHIFT); | 73 | bind_Keys(1000, "scroll.page arg:-1", SDLK_SPACE, KMOD_SHIFT); |
72 | bind_Keys(1001, "scroll.page arg:1", SDLK_SPACE, 0); | 74 | bind_Keys(1001, "scroll.page arg:1", SDLK_SPACE, 0); |