summaryrefslogtreecommitdiff
path: root/src/ui/keys.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-02-03 08:14:34 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-02-03 08:14:34 +0200
commitf5d9ddb6fe63b3601532d9ba1bce2963815f0dbb (patch)
tree0dab64b153f22936e0b2a42ed209fa4e7ef2244c /src/ui/keys.c
parenta9fc7682c56fa2853d800dfea868789cbf0ca404 (diff)
Added keybinding (F11) for toggling fullscreen mode
IssueID #130
Diffstat (limited to 'src/ui/keys.c')
-rw-r--r--src/ui/keys.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/keys.c b/src/ui/keys.c
index 656a52ac..0f4a19f7 100644
--- a/src/ui/keys.c
+++ b/src/ui/keys.c
@@ -84,6 +84,9 @@ static const struct { int id; iMenuItem bind; int flags; } defaultBindings_[] =
84 { 70, { "Zoom in", SDLK_EQUALS, KMOD_PRIMARY, "zoom.delta arg:10" }, 0 }, 84 { 70, { "Zoom in", SDLK_EQUALS, KMOD_PRIMARY, "zoom.delta arg:10" }, 0 },
85 { 71, { "Zoom out", SDLK_MINUS, KMOD_PRIMARY, "zoom.delta arg:-10" }, 0 }, 85 { 71, { "Zoom out", SDLK_MINUS, KMOD_PRIMARY, "zoom.delta arg:-10" }, 0 },
86 { 72, { "Reset zoom", SDLK_0, KMOD_PRIMARY, "zoom.set arg:100" }, 0 }, 86 { 72, { "Reset zoom", SDLK_0, KMOD_PRIMARY, "zoom.set arg:100" }, 0 },
87#if !defined (iPlatformApple) /* Ctrl-Cmd-F on macOS */
88 { 73, { "Toggle fullscreen mode", SDLK_F11, 0, "window.fullscreen" }, 0 },
89#endif
87 { 76, { "New tab", newTab_KeyShortcut, "tabs.new" }, 0 }, 90 { 76, { "New tab", newTab_KeyShortcut, "tabs.new" }, 0 },
88 { 77, { "Close tab", closeTab_KeyShortcut, "tabs.close" }, 0 }, 91 { 77, { "Close tab", closeTab_KeyShortcut, "tabs.close" }, 0 },
89 { 80, { "Previous tab", prevTab_KeyShortcut, "tabs.prev" }, 0 }, 92 { 80, { "Previous tab", prevTab_KeyShortcut, "tabs.prev" }, 0 },