Skip to content

Instantly share code, notes, and snippets.

@AdrienVR
Forked from roryokane/FixCtrlBackspace.ahk
Last active December 28, 2022 11:26
Show Gist options
  • Save AdrienVR/4136db1bfb0d3d3490b0d1e23e56daf9 to your computer and use it in GitHub Desktop.
Save AdrienVR/4136db1bfb0d3d3490b0d1e23e56daf9 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/
#NoEnv
#SingleInstance force
SendMode Input
#IfWinActive ahk_exe explorer.exe
^Backspace::
Send ^+{Left}{Backspace}
#IfWinActive ahk_exe ditto.exe
^Backspace::
Send ^+{Left}{Backspace}
#IfWinActive
; source: https://gist.github.com/roryokane/6346782
; 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
@AdrienVR
Copy link
Author

Using @iwconfig suggestion + remove notepad line since Ctrl+Backspace is now supported in Windows 10

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