From 15d51b8def343ab6b577f4c913a2d20baa9e6aa2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= <john@ankarstrom.se>
Date: Sat, 5 Dec 2020 11:09:52 +0100
Subject: scroll: Revert PgUp/PgDn to normal behavior

---
 tt.scroll.ahk | 25 ++-----------------------
 1 file changed, 2 insertions(+), 23 deletions(-)

diff --git a/tt.scroll.ahk b/tt.scroll.ahk
index e553317..9a8d41a 100644
--- a/tt.scroll.ahk
+++ b/tt.scroll.ahk
@@ -1,13 +1,5 @@
 ;; -> body
 
-;; TODO: Check how far up/down window cursor is
-;; (but let perhaps the top 30-40% give the same scroll)
-
-;� & LButton::SendInput, {WheelDown}
-;� & RButton::SendInput, {WheelUp}
-
-; <^>!�::SendInput, {Text}�
-
 #IfWinActive ahk_class PuTTY
 
 PgUp::
@@ -20,27 +12,14 @@ Loop, 5
 	SendInput, ^{PgDn}
 return
 
-#IfWinActive ahk_class SUMATRA_PDF_FRAME
-
-PgUp::SendInput, {PgUp}
-PgDn::SendInput, {PgDn}
-
-#IfWinActive ahk_class Chrome_WidgetWin_1
-
-PgUp::SendInput, {PgUp}
-PgDn::SendInput, {PgDn}
-
 #IfWinActive
 
-PgUp::
+RCtrl & PgUp::
 Loop, 5
 	SendInput, {WheelUp}
 return
 
-PgDn::
+RCtrl & PgDn::
 Loop, 5
 	SendInput, {WheelDown}
 return
-
-<^>!PgUp::SendInput, {PgUp}
-<^>!PgDn::SendInput, {PgDn}
-- 
cgit v1.2.3