Skip to content

Instantly share code, notes, and snippets.

@Ickerday
Forked from roryokane/FixCtrlBackspace.ahk
Created December 13, 2016 18:39
Show Gist options
  • Save Ickerday/426b5fc6db5fdb7823edf80d9d7b0f04 to your computer and use it in GitHub Desktop.
Save Ickerday/426b5fc6db5fdb7823edf80d9d7b0f04 to your computer and use it in GitHub Desktop.
AutoHotkey script to fix Ctrl+Backspace (delete previous word) in File Explorer and Notepad
; how to write scripts: http://www.autohotkey.com/docs/
#IfWinActive ahk_class CabinetWClass ; File Explorer
^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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment