summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-01-10 21:02:33 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-01-10 21:02:33 +0200
commitecbdd117f1635ab41039ec134a584a12782f6d32 (patch)
tree9873a8b3b1670be29d711e7e02ff0867cbd36d0b /src
parent3625be638e06b77c0d8dbc6bce09f15863178b55 (diff)
"Reload page" is bindable; added F5 as built-in binding
IssueID #115
Diffstat (limited to 'src')
-rw-r--r--src/ui/keys.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/keys.c b/src/ui/keys.c
index 6dc28237..99000d54 100644
--- a/src/ui/keys.c
+++ b/src/ui/keys.c
@@ -74,6 +74,7 @@ static const struct { int id; iMenuItem bind; int flags; } defaultBindings_[] =
74 { 31, { "Go forward", navigateForward_KeyShortcut, "navigate.forward" }, 0 }, 74 { 31, { "Go forward", navigateForward_KeyShortcut, "navigate.forward" }, 0 },
75 { 32, { "Go to parent directory", navigateParent_KeyShortcut, "navigate.parent" }, 0 }, 75 { 32, { "Go to parent directory", navigateParent_KeyShortcut, "navigate.parent" }, 0 },
76 { 33, { "Go to site root", navigateRoot_KeyShortcut, "navigate.root" }, 0 }, 76 { 33, { "Go to site root", navigateRoot_KeyShortcut, "navigate.root" }, 0 },
77 { 35, { "Reload page", reload_KeyShortcut, "document.reload" }, 0 },
77 { 40, { "Open link via home row keys", 'f', 0, "document.linkkeys arg:1" }, 0 }, 78 { 40, { "Open link via home row keys", 'f', 0, "document.linkkeys arg:1" }, 0 },
78 { 41, { "Open link via modifier key", SDLK_LALT, 0, "document.linkkeys arg:0" }, argRelease_BindFlag }, 79 { 41, { "Open link via modifier key", SDLK_LALT, 0, "document.linkkeys arg:0" }, argRelease_BindFlag },
79 { 70, { "Zoom in", SDLK_EQUALS, KMOD_PRIMARY, "zoom.delta arg:10" }, 0 }, 80 { 70, { "Zoom in", SDLK_EQUALS, KMOD_PRIMARY, "zoom.delta arg:10" }, 0 },
@@ -88,6 +89,7 @@ static const struct { int id; iMenuItem bind; int flags; } defaultBindings_[] =
88 { 1002, { NULL, SDLK_LEFTBRACKET, KMOD_PRIMARY, "navigate.back" }, 0 }, 89 { 1002, { NULL, SDLK_LEFTBRACKET, KMOD_PRIMARY, "navigate.back" }, 0 },
89 { 1003, { NULL, SDLK_RIGHTBRACKET, KMOD_PRIMARY, "navigate.forward" }, 0 }, 90 { 1003, { NULL, SDLK_RIGHTBRACKET, KMOD_PRIMARY, "navigate.forward" }, 0 },
90#endif 91#endif
92 { 1004, { NULL, SDLK_F5, 0, "document.reload" }, 0 },
91}; 93};
92 94
93static iBinding *findId_Keys_(iKeys *d, int id) { 95static iBinding *findId_Keys_(iKeys *d, int id) {