diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2021-08-16 15:48:44 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-08-19 18:33:47 +0700 |
commit | 7d310f788a6a70cac7be2795d6e195dbdd30d5e7 (patch) | |
tree | 22f38355b73fe06c1995796aac4d722f696990a9 /network | |
parent | ee02b8f52a5c21e1847b47f2342ee3dceba27385 (diff) |
network/midori: Patch to fix focus issue.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r-- | network/midori/0115b02f43d23612366d0c5063e6b314d04e3853.patch | 29 | ||||
-rw-r--r-- | network/midori/midori.SlackBuild | 3 |
2 files changed, 32 insertions, 0 deletions
diff --git a/network/midori/0115b02f43d23612366d0c5063e6b314d04e3853.patch b/network/midori/0115b02f43d23612366d0c5063e6b314d04e3853.patch new file mode 100644 index 0000000000000..4c487b35025ec --- /dev/null +++ b/network/midori/0115b02f43d23612366d0c5063e6b314d04e3853.patch @@ -0,0 +1,29 @@ +From 0115b02f43d23612366d0c5063e6b314d04e3853 Mon Sep 17 00:00:00 2001 +From: Klaus von der Heyde <39677540+asc-soc@users.noreply.github.com> +Date: Mon, 16 Sep 2019 19:23:00 +0200 +Subject: [PATCH] Added special handling when Midori.Urlbar is in focus (#366) + +If the urlbar has focus and reacts on the event, stop further handling. This enables ^N and ^T again, as the edit field does not handle them. Any key binding in the edit field takes precedence. + +Fixes: #364 +--- + core/browser.vala | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/core/browser.vala b/core/browser.vala +index 3ce21e40..503aa301 100644 +--- a/core/browser.vala ++++ b/core/browser.vala +@@ -453,6 +453,12 @@ namespace Midori { + // No keyboard shortcuts in locked state + if (is_locked) { + return propagate_key_event (event); ++ } ++ // Default behaviour for navigation bar ++ if (get_focus () is Midori.Urlbar) { ++ if (navigationbar.urlbar.key_press_event (event)) { ++ return true; ++ } + } + // Default behavior for standard widgets + if (!(get_focus () is WebKit.WebViewBase)) { diff --git a/network/midori/midori.SlackBuild b/network/midori/midori.SlackBuild index 4566afd115769..97aea5ca52d8d 100644 --- a/network/midori/midori.SlackBuild +++ b/network/midori/midori.SlackBuild @@ -87,6 +87,9 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# fix wrong focus +patch -p1 < $CWD/0115b02f43d23612366d0c5063e6b314d04e3853.patch + mkdir -p build cd build cmake \ |