Skip to content

Instantly share code, notes, and snippets.

View ThomazPom's full-sized avatar

ThomazPom ThomazPom

View GitHub Profile

AHK Script: Remapping Insert Key

Purpose

This script globally disables the default behavior of the Insert key, as I never use it as intended. Instead, it remaps both the standard Insert key and the Numpad Insert key to function as Shift + Insert. This is useful when I mean to press Shift + Insert but mistakenly press only the Insert key.

Behavior

  • Numpad Insert: Remapped to act as Shift + Insert. Holding the Shift key allows multiple presses of the Insert key without releasing Shift.
  • Standard Insert: Also remapped to Shift + Insert for consistency.

Code

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\directory\background\shell\ps1]
@="Open Powershell"
"Icon"="powershell.exe"
"NoWorkingDirectory"=""
"ShowBasedOnVelocityId"=dword:00639bc8
[HKEY_CLASSES_ROOT\directory\background\shell\ps1\command]
@="powershell.exe -noexit -command Set-Location -literalPath '%V'"