diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-03 11:03:47 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-03 11:58:51 +0200 |
commit | e0f586866ebafa296bda849b392d09fc2e14d487 (patch) | |
tree | 5536cf6f56f9c71db6b24cc185618387c35bdf4d /src/ui/sidebarwidget.c | |
parent | 76f9ab985c135c6f691276b4edd0c340a6bc2de1 (diff) |
CapsLock as a modifier key; adding a modifier mapping table
IssueID #87
Diffstat (limited to 'src/ui/sidebarwidget.c')
-rw-r--r-- | src/ui/sidebarwidget.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c index 4e908f1e..4d3818bd 100644 --- a/src/ui/sidebarwidget.c +++ b/src/ui/sidebarwidget.c | |||
@@ -33,6 +33,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ | |||
33 | #include "inputwidget.h" | 33 | #include "inputwidget.h" |
34 | #include "labelwidget.h" | 34 | #include "labelwidget.h" |
35 | #include "listwidget.h" | 35 | #include "listwidget.h" |
36 | #include "keys.h" | ||
36 | #include "paint.h" | 37 | #include "paint.h" |
37 | #include "scrollwidget.h" | 38 | #include "scrollwidget.h" |
38 | #include "util.h" | 39 | #include "util.h" |
@@ -605,14 +606,14 @@ static void itemClicked_SidebarWidget_(iSidebarWidget *d, const iSidebarItem *it | |||
605 | } | 606 | } |
606 | case feeds_SidebarMode: { | 607 | case feeds_SidebarMode: { |
607 | postCommandString_App( | 608 | postCommandString_App( |
608 | feedEntryOpenCommand_String(&item->url, openTabMode_Sym(SDL_GetModState()))); | 609 | feedEntryOpenCommand_String(&item->url, openTabMode_Sym(modState_Keys()))); |
609 | break; | 610 | break; |
610 | } | 611 | } |
611 | case bookmarks_SidebarMode: | 612 | case bookmarks_SidebarMode: |
612 | case history_SidebarMode: { | 613 | case history_SidebarMode: { |
613 | if (!isEmpty_String(&item->url)) { | 614 | if (!isEmpty_String(&item->url)) { |
614 | postCommandf_App("open newtab:%d url:%s", | 615 | postCommandf_App("open newtab:%d url:%s", |
615 | openTabMode_Sym(SDL_GetModState()), | 616 | openTabMode_Sym(modState_Keys()), |
616 | cstr_String(&item->url)); | 617 | cstr_String(&item->url)); |
617 | } | 618 | } |
618 | break; | 619 | break; |