It’s late at night. Outside the window there are no cicadas, only the sound of the keyboard.
I’m writing a little word-memorization tool. The requirement is simple: press Ctrl+N to jump to the next word. Like having a glass of wine and naturally wanting a second; like seeing something beautiful and naturally wanting another look. It’s smooth. It’s human nature.
But the browser refuses.
In Chrome’s eyes, Ctrl+N has only one meaning: new window. It’s an instinct, a rule written into its genes. You press it, and a new window pops up — blank and white, just like this miserable life, always giving you surprises that aren’t the ones you wanted.
I tried to fight back.
I used e.preventDefault(), trying to tell it: “Don’t move. Listen to me.”
No use.
I used e.stopPropagation(), trying to sever its neural pathways.
No use.
I even used e.stopImmediatePropagation() — the nuclear weapon of code, meaning “everyone shut up and listen to me only”.
Still no use.
The browser stared coldly at me, and still popped that white new window. It seemed to say: “Kid, this is my turf. Some rules are golden lines you cannot cross.”
I suddenly realized: writing code is like living life.
When you’re young, you always think you can change the world, rewrite the rules. We think as long as the logic is right, as long as the code is elegant, the world should revolve around us. We want to claim Ctrl+N for ourselves, like wanting to keep a girl who doesn’t belong to you by force.
Then we get swollen, we hit walls, we learn what pain is.
We begin to understand that some system-level settings are unshakable. No matter how awesome your JavaScript is, it can’t beat the browser’s underlying C++. No matter how heartfelt your plea, you can’t keep a heart that wants to leave.
So I compromised.
I changed the shortcut to Alt+N. Or Ctrl+→.
Sure, it’s one more key, or a different hand, slightly more hassle. But it works. Words switch smoothly, pages no longer pop windows inexplicably. World peace.
Isn’t this what middle age is?
No longer obsessed with “perfect” and “must”, but seeking “workable” and “coexistence”. We learn to dance in the cracks of rules, learn to use Alt instead of Ctrl, learn to accept that Ctrl+N forever belongs to the browser — and settle our desires in the corner of Alt.
The code is done. The feature is live.
I take a sip of tea and look at the hint on screen: “Note: if Ctrl+N is occupied by the browser, please use Alt+N”.
This line is like the subtext life gives us: If life rapes you, don’t resist — change position, maybe it gets more comfortable.
Good night.