summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-03-26 20:49:31 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-03-26 20:49:31 +0200
commita153608c431fe7ade425c850024cdec17be3528a (patch)
treea0019f0e08da563c8e3e3b7bc97bf22d1d0b3538 /src
parent7b3bacf0b9b7d57fdee699c1c0297127f0fcfadc (diff)
Keys: Built-in bindings for internet hot keys
IssueID #223
Diffstat (limited to 'src')
-rw-r--r--src/ui/keys.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/ui/keys.c b/src/ui/keys.c
index 255e45ce..beb5f386 100644
--- a/src/ui/keys.c
+++ b/src/ui/keys.c
@@ -226,10 +226,18 @@ static const struct { int id; iMenuItem bind; int flags; } defaultBindings_[] =
226 { 100,{ "${keys.hoverurl}", '/', KMOD_PRIMARY, "prefs.hoverlink.toggle" }, 0 }, 226 { 100,{ "${keys.hoverurl}", '/', KMOD_PRIMARY, "prefs.hoverlink.toggle" }, 0 },
227 /* The following cannot currently be changed (built-in duplicates). */ 227 /* The following cannot currently be changed (built-in duplicates). */
228#if defined (iPlatformApple) 228#if defined (iPlatformApple)
229 { 1002, { NULL, SDLK_LEFTBRACKET, KMOD_PRIMARY, "navigate.back" }, 0 }, 229 { 1002, { NULL, SDLK_LEFTBRACKET, KMOD_PRIMARY, "navigate.back" }, 0 },
230 { 1003, { NULL, SDLK_RIGHTBRACKET, KMOD_PRIMARY, "navigate.forward" }, 0 }, 230 { 1003, { NULL, SDLK_RIGHTBRACKET, KMOD_PRIMARY, "navigate.forward" }, 0 },
231#endif 231#endif
232 { 1004, { NULL, SDLK_F5, 0, "document.reload" }, 0 }, 232 { 1004, { NULL, SDLK_F5, 0, "document.reload" }, 0 },
233 /* Media keys. */
234 { 1005, { NULL, SDLK_AC_SEARCH, 0, "focus.set id:find.input" }, 0 },
235 { 1006, { NULL, SDLK_AC_HOME, 0, "navigate.home" }, 0 },
236 { 1007, { NULL, SDLK_AC_BACK, 0, "navigate.back" }, 0 },
237 { 1008, { NULL, SDLK_AC_FORWARD, 0, "navigate.forward" }, 0 },
238 { 1009, { NULL, SDLK_AC_STOP, 0, "document.stop" }, 0 },
239 { 1010, { NULL, SDLK_AC_REFRESH, 0, "navigate.reload" }, 0 },
240 { 1011, { NULL, SDLK_AC_BOOKMARKS, 0, "sidebar.mode arg:0 toggle:1" }, 0 },
233}; 241};
234 242
235static iBinding *findId_Keys_(iKeys *d, int id) { 243static iBinding *findId_Keys_(iKeys *d, int id) {