Skip to content

Instantly share code, notes, and snippets.

@ivan
Created May 29, 2026 15:22
Show Gist options
  • Select an option

  • Save ivan/5f0d7d087a7884dc348306ef3dd69269 to your computer and use it in GitHub Desktop.

Select an option

Save ivan/5f0d7d087a7884dc348306ef3dd69269 to your computer and use it in GitHub Desktop.
AutoHotkey to remap a laptop numpad to the keys you'd find in the navigation cluster
#persistent
#SingleInstance Force
; The idea here is to remap the entire numpad (with Numlock off)
; to a scroll lock area with:
; Ins Home PgUp
; Del End PgDn
; Up Up
; Left [ Down ] Right
;
; where we unfortunately borrow the Right arrow key left of the numpad,
; to be the Left arrow key instead.
NumpadRight::PgDn
NumpadUp::Home
; vk0C = Numpad5 when not in Numlock mode
vk0C::End
NumpadHome::Insert
NumpadLeft::Delete
NumpadDel::Right
Right::Left
; Numpad0/Ins is a double-wide key, unfortunately
NumpadIns::Down
; Two up keys above the down key
NumpadDown::Up
NumpadEnd::Up
; Disable unused keys
NumpadPgDn::return
NumpadEnter::return
NumpadAdd::return
@ivan

ivan commented May 29, 2026

Copy link
Copy Markdown
Author
IMG_5350

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment