summaryrefslogtreecommitdiff
path: root/src/ui/keys.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/keys.h')
-rw-r--r--src/ui/keys.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/ui/keys.h b/src/ui/keys.h
new file mode 100644
index 00000000..cf6aad04
--- /dev/null
+++ b/src/ui/keys.h
@@ -0,0 +1,37 @@
1/* Copyright 2020 Jaakko Keränen <jaakko.keranen@iki.fi>
2
3Redistribution and use in source and binary forms, with or without
4modification, are permitted provided that the following conditions are met:
5
61. Redistributions of source code must retain the above copyright notice, this
7 list of conditions and the following disclaimer.
82. Redistributions in binary form must reproduce the above copyright notice,
9 this list of conditions and the following disclaimer in the documentation
10 and/or other materials provided with the distribution.
11
12THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
13ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
14WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
15DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
16ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
17(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
18LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
19ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
20(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
21SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
22
23#pragma once
24
25#include <the_Foundation/defs.h>
26
27#if defined (iPlatformApple)
28# define prevTab_KeyShortcut SDLK_LEFTBRACKET, KMOD_SHIFT | KMOD_PRIMARY
29# define nextTab_KeyShortcut SDLK_RIGHTBRACKET, KMOD_SHIFT | KMOD_PRIMARY
30# define navigateBack_KeyShortcut SDLK_LEFT, KMOD_PRIMARY
31# define navigateForward_KeyShortcut SDLK_RIGHT, KMOD_PRIMARY
32#else
33# define prevTab_KeyShortcut SDLK_PAGEUP, KMOD_PRIMARY
34# define nextTab_KeyShortcut SDLK_PAGEDOWN, KMOD_PRIMARY
35# define navigateBack_KeyShortcut SDLK_LEFT, KMOD_ALT
36# define navigateForward_KeyShortcut SDLK_RIGHT, KMOD_ALT
37#endif