While editing in an input field, I’m so used to going for Ctrl+W instead of Ctrl+Backspace because it’s more ergonomic. But almost all modern browsers use Ctrl + W to close tabs. Since when was this a convention? I’d love to go back in time and git revert this change. Incredibly frustrating.
TL;DR: old man yelling at clouds.
I used to have that problem with Ctrl + Q and Ctrl + Shift + W. I used AutoKey to map them to an empty AutoKey phrase.
You can also map Ctrl + W to an AutoKey script that converts it to Ctrl + Backspace:
keyboard.send_keys("<ctrl>+<backspace>")
The difference between phrases and scripts in AutoKey is that phrases can only output dumb text (and expand some macros), whereas scripts are Python code that can do stuff with the keyboard, mouse, windows etc.
AutoKey lets you target only specific types of windows if you want, so you can additionally limit these mappings only to the browser.
I’ll check it out, but hope it doesn’t affect performance. Thanks!
I’m using AutoKey scripts like that in some games to automate weird key combinations and it has a very good response time. If it’s responsive enough for a game it will probably work for text editing.