I’m running into a strange input issue on KDE Plasma (Wayland) where the Enter key seems to get “stuck” or keeps triggering after using search/command palette .
System information
OS: Fedora Linux 44 (KDE Plasma Desktop)
KDE Plasma: 6.6.5
Kernel: Linux 7.0.10-201.fc44.x86_64
WM: KWin (Wayland)
Issue description
In VSCode, I can reproduce the issue like this:
-
Press
Ctrl + P -
Type a file name
-
Press
Enterto open the file
The file opens normally, but immediately after that, inside the opened file, the Enter key behaves as if it is still being pressed or repeatedly triggered.
It feels like the Enter key event is not being properly released after confirming the file selection.
The only way to stop it is to press Esc.
What makes this more confusing
-
I tested with a key event viewer/tool and it does not show Enter being physically pressed or held down.
-
The issue is not limited to VSCode:
-
It also happens in Windsurf
-
And Antigravity
-
-
It only seems to happen after using search/command palette style inputs (like Ctrl+P)
Expected behavior
After pressing Enter to confirm a selection:
-
The key event should trigger once
-
Then fully release with no residual input
Actual behavior
After pressing Enter:
-
The file opens correctly
-
But Enter behaves like it is still active
-
Causes repeated input / unwanted actions until pressing
Esc
Additional troubleshooting tried
- Ran VSCode using X11 mode via Electron flag:
ELECTRON_OZONE_PLATFORM_HINT=x11 code
- Also forced X11 rendering using VSCode flags file:
echo "--ozone-platform=x11" > ~/.config/code-flags.conf
- In VSCode, hardware acceleration was disabled by adding:
"disable-hardware-acceleration": true
to argv.json.
