From b7d5789aa944b6ff90f604dfda556511b922e5bd Mon Sep 17 00:00:00 2001 From: TheBestPessimist Date: Wed, 16 Dec 2020 10:01:57 +0200 Subject: [PATCH] Fix Vivaldi Back and Forward Touchpad Gestures --- app_handling.ahk | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/app_handling.ahk b/app_handling.ahk index e54c8f8..59c152f 100644 --- a/app_handling.ahk +++ b/app_handling.ahk @@ -297,3 +297,23 @@ CapsLock & v:: Clipboard := ClipSaved ; Restore Clipboard } + + + + +;------------------------------------------------- +; Fix Vivaldi Gestures +; +; The problem with Vivaldi is that on "3 finger swipe" left and right touchpad gestures, +; Vivaldi executes the Browser_Forward and Browser_Back actions both on key up and on key down. +; Therefore the solution is simple: don't send key down events to Vivaldi + +; Browser_Back via 3 finger swipe to right +sc16A::Return +sc16A Up::SendInput !{Left} ; This sends Alt+Left +sc06A::Return +sc06A Up::SendInput !{Left} ; This sends Alt+Left + +; Browser_Forward via 3 finger swipe to left +sc069::Return +sc069 Up::SendInput !{Right} ; This sends Alt+Right