Skip to content

Instantly share code, notes, and snippets.

@mshuffett
Forked from roryokane/FixCtrlBackspace.ahk
Last active May 29, 2018 18:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mshuffett/1827ddf35ace84232479 to your computer and use it in GitHub Desktop.
Save mshuffett/1827ddf35ace84232479 to your computer and use it in GitHub Desktop.
; how to write scripts: http://www.autohotkey.com/docs/
#IfWinActive ahk_class CabinetWClass ; File Explorer
^Backspace::
#IfWinActive ahk_class Progman ; Desktop
^Backspace::
#IfWinActive ahk_class Notepad
^Backspace::
Send ^+{Left}{Backspace}
#IfWinActive
; source and context: http://superuser.com/a/636973/124606
; relevant documentation links:
; writing hotkeys
; http://www.autohotkey.com/docs/Hotkeys.htm
; list of key codes (including Backspace)
; http://www.autohotkey.com/docs/KeyList.htm
; the #IfWinActive directive
; http://www.autohotkey.com/docs/commands/_IfWinActive.htm
; the Send command
; http://www.autohotkey.com/docs/commands/Send.htm
@mshuffett
Copy link
Author

Added suggested addition from roryokane's comment to support Desktop

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