From facdf3ca44c170aec9466b7e309a209de0c7f643 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sat, 19 Dec 2020 07:33:34 +0200 Subject: Opening unrecognized schemes in default browser This works if the OS supports the scheme as built-in or via some handler application. IssueID #103 IssueID #84 --- src/ui/util.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/ui/util.c') diff --git a/src/ui/util.c b/src/ui/util.c index b6378055..855f0fb3 100644 --- a/src/ui/util.c +++ b/src/ui/util.c @@ -135,6 +135,11 @@ int keyMods_Sym(int kmods) { return kmods; } +int openTabMode_Sym(int kmods) { + const int km = keyMods_Sym(kmods); + return ((km & KMOD_PRIMARY) && (km & KMOD_SHIFT)) ? 1 : (km & KMOD_PRIMARY) ? 2 : 0; +} + iRangei intersect_Rangei(iRangei a, iRangei b) { if (a.end < b.start || a.start > b.end) { return (iRangei){ 0, 0 }; -- cgit v1.2.3