aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2020-12-05 11:09:52 +0100
committerJohn Ankarström <john@ankarstrom.se>2020-12-05 11:09:52 +0100
commit15d51b8def343ab6b577f4c913a2d20baa9e6aa2 (patch)
treea272a4ca87d9827af2e915b9e5bb1a633676c292
parent778d578f23d2c5f341eed2276d05fdab273a5f36 (diff)
downloadahk-15d51b8def343ab6b577f4c913a2d20baa9e6aa2.tar.gz
scroll: Revert PgUp/PgDn to normal behavior
-rw-r--r--tt.scroll.ahk25
1 files 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}