I keep closing my browser tabs by accident with Ctrl + W

lckdscl [they/them]@whiskers.bim.boats to Linux@lemmy.ml – 39 points –

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.

30

You are viewing a single comment

Doesn't your browser warn you before closing a tab where you have entered text in an input field?

Yes, but that's not always the case. For example, I use Portainer to drop into the shell of my Docker containers with a "terminal UI" and that tricks me into using Ctrl + W.

I am not entirely sure, but I think it depends on the page if it warns if text is in an input and you want to leave the page.