diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-01-26 07:34:22 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-01-26 07:34:22 +0200 |
commit | 37fefc85a9a23be7c3bc6dcddb8a30047459f534 (patch) | |
tree | d35e00807cb4ab5d351f5149b6aae0eed0e9be63 /src/ui/keys.h | |
parent | 90d1acd4a88822675208f5e1d445b5017f7cbfb8 (diff) |
Keybindings for new tab, close tab, add bookmark
Added new keybindings for opening and closing a tab. Also added a keybinding for adding a bookmark so ⌘D can be made available.
On macOS, there is a default Window > Close menu item, so treat that as a "tabs.close" command to make it bindable.
IssueID #121
Diffstat (limited to 'src/ui/keys.h')
-rw-r--r-- | src/ui/keys.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/keys.h b/src/ui/keys.h index 8bcd4f53..f6f0b465 100644 --- a/src/ui/keys.h +++ b/src/ui/keys.h | |||
@@ -28,6 +28,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ | |||
28 | 28 | ||
29 | #if defined (iPlatformApple) | 29 | #if defined (iPlatformApple) |
30 | # define reload_KeyShortcut SDLK_r, KMOD_PRIMARY | 30 | # define reload_KeyShortcut SDLK_r, KMOD_PRIMARY |
31 | # define newTab_KeyShortcut SDLK_t, KMOD_PRIMARY | ||
32 | # define closeTab_KeyShortcut SDLK_w, KMOD_PRIMARY | ||
31 | # define prevTab_KeyShortcut SDLK_LEFTBRACKET, KMOD_SHIFT | KMOD_PRIMARY | 33 | # define prevTab_KeyShortcut SDLK_LEFTBRACKET, KMOD_SHIFT | KMOD_PRIMARY |
32 | # define nextTab_KeyShortcut SDLK_RIGHTBRACKET, KMOD_SHIFT | KMOD_PRIMARY | 34 | # define nextTab_KeyShortcut SDLK_RIGHTBRACKET, KMOD_SHIFT | KMOD_PRIMARY |
33 | # define navigateBack_KeyShortcut SDLK_LEFT, KMOD_PRIMARY | 35 | # define navigateBack_KeyShortcut SDLK_LEFT, KMOD_PRIMARY |
@@ -40,6 +42,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ | |||
40 | # define subscribeToPage_KeyModifier SDLK_d, KMOD_SHIFT | KMOD_PRIMARY | 42 | # define subscribeToPage_KeyModifier SDLK_d, KMOD_SHIFT | KMOD_PRIMARY |
41 | #else | 43 | #else |
42 | # define reload_KeyShortcut SDLK_r, KMOD_PRIMARY | 44 | # define reload_KeyShortcut SDLK_r, KMOD_PRIMARY |
45 | # define newTab_KeyShortcut SDLK_t, KMOD_PRIMARY | ||
46 | # define closeTab_KeyShortcut SDLK_w, KMOD_PRIMARY | ||
43 | # define prevTab_KeyShortcut SDLK_PAGEUP, KMOD_PRIMARY | 47 | # define prevTab_KeyShortcut SDLK_PAGEUP, KMOD_PRIMARY |
44 | # define nextTab_KeyShortcut SDLK_PAGEDOWN, KMOD_PRIMARY | 48 | # define nextTab_KeyShortcut SDLK_PAGEDOWN, KMOD_PRIMARY |
45 | # define navigateBack_KeyShortcut SDLK_LEFT, KMOD_ALT | 49 | # define navigateBack_KeyShortcut SDLK_LEFT, KMOD_ALT |