I’m really enjoying my new Framework laptop, but I do miss the dedicated PgUp, PgDn, Home, and End keys that I had on my ThinkPad. I know there’s already a topic on the arrow keys that mentions this, but I just wanted focus specifically on these four actions which I use all the time.
The good news is I’ve found a simple autohotkey solution that works pretty well for me. I simply map right-ctrl + arrow keys to PgUp/PgDn/Home/End. That way I can activate the actions easily with one hand.
This is the script:
; Ctrl + arrow keys
>^Up::send {Ctrl Up}{PgUp}
>^Down::send {Ctrl Up}{PgDn}
>^Left::send {Ctrl Up}{Home}
>^Right::send {Ctrl Up}{End}
; Ctrl + Shift + arrow keys
>^+Up::send {Ctrl Up}{Shift Up}+{PgUp}
>^+Down::send {Ctrl Up}{Shift Up}+{PgDn}
>^+Left::send {Ctrl Up}{Shift Up}+{Home}
>^+Right::send {Ctrl Up}{Shift Up}+{End}
I based it off of another more comprehensive script that uses alt instead of ctrl.
Using alt for the modifier key is more useful if you want to type something like ctrl-home (by typing alt-ctrl-left), however I found when using it that I sometimes push the alt key and then change my mind, which results in setting the focus to the menu of the current application. Maybe there’s a way to add something to the script to prevent this (i.e. ignore right-alt key presses with no other key?).
Anyway, I’m pretty happy with right-ctrl as the modifier because it does the majority of what I want to do, and it feels pretty natural since the right-ctrl key is next to the arrow keys.