summaryrefslogtreecommitdiff
path: root/src/ui/window.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-09-09 19:59:06 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-09-09 19:59:06 +0300
commit4ab25def835077e04cf6df19f4aadc7a2e9dc0d7 (patch)
tree670ff7734938c2dd9f5160638b72ad20852c24e9 /src/ui/window.c
parentf0c3134aebd83de1712a66d59af9f2d414110f11 (diff)
Added header file for keyboard shortcuts
Diffstat (limited to 'src/ui/window.c')
-rw-r--r--src/ui/window.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/ui/window.c b/src/ui/window.c
index a419684c..8d76c68b 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -31,6 +31,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
31#include "command.h" 31#include "command.h"
32#include "paint.h" 32#include "paint.h"
33#include "util.h" 33#include "util.h"
34#include "keys.h"
34#include "../app.h" 35#include "../app.h"
35#include "../visited.h" 36#include "../visited.h"
36#include "../gmcerts.h" 37#include "../gmcerts.h"
@@ -433,11 +434,15 @@ static void setupUserInterface_Window(iWindow *d) {
433 6); 434 6);
434 setId_Widget(tabsMenu, "doctabs.menu"); 435 setId_Widget(tabsMenu, "doctabs.menu");
435 /* Global keyboard shortcuts. */ { 436 /* Global keyboard shortcuts. */ {
436 addAction_Widget(d->root, SDLK_LEFTBRACKET, KMOD_SHIFT | KMOD_PRIMARY, "tabs.prev"); 437 addAction_Widget(d->root, prevTab_KeyShortcut, "tabs.prev");
437 addAction_Widget(d->root, SDLK_RIGHTBRACKET, KMOD_SHIFT | KMOD_PRIMARY, "tabs.next"); 438 addAction_Widget(d->root, nextTab_KeyShortcut, "tabs.next");
438#if !defined (iHaveNativeMenus) 439#if !defined (iHaveNativeMenus)
439 addAction_Widget(d->root, 'l', KMOD_PRIMARY, "focus.set id:url"); 440 addAction_Widget(d->root, 'l', KMOD_PRIMARY, "focus.set id:url");
440 addAction_Widget(d->root, 'f', KMOD_PRIMARY, "focus.set id:find.input"); 441 addAction_Widget(d->root, 'f', KMOD_PRIMARY, "focus.set id:find.input");
442 addAction_Widget(d->root, '1', KMOD_PRIMARY, "sidebar.mode arg:0 toggle:1");
443 addAction_Widget(d->root, '2', KMOD_PRIMARY, "sidebar.mode arg:1 toggle:1");
444 addAction_Widget(d->root, '3', KMOD_PRIMARY, "sidebar.mode arg:2 toggle:1");
445 addAction_Widget(d->root, '4', KMOD_PRIMARY, "sidebar.mode arg:3 toggle:1");
441#endif 446#endif
442 } 447 }
443} 448}