Key presses not identified on source editor lazarus / 13-General ---------------------------------------------------------------------- benjamimgois · 2021-05-07 17:40 Hey guys, i used lazarus for a long time but this is my first post. I want to report a really strange problem that i'm having lately. When i'm running the QT5 of lazarus any key that i press isn't recognized by the code editor, but works fine in the rest of the UI. I'm using Lazarus 2.0.12-2 QT5 from Manjaro offical repositories. If i compile the lazarus interface in GTK2 it works fine. Any ideas of what's going on ? Here's a small video showing the issue https://www.youtube.com/watch?v=spDZM_mDGzc&ab_channel=BenjamimGois ---------------------------------------------------------------------- PauloVlw · 2025-02-23 19:14 I've got a similar issue. Is it even solvable? Installed lazarus-qt6 package from Manjaro repository. I tried with Gtk2, and it works normally, but other things are buggy, so I discarded it. Apparently, when Source Editor is active, only these keys/mappings work, but as described: Arrow keys (also arrows from NumPad, when NumLock off): instead of moving the cursor, they move the scroll bars.PgUp and PgDown: move the scroll bars one page up or down, but does not move the cursor. Ctrl (yes, only Ctrl): selects in the whole text similar words to the one where the cursor is. Never mind. I noticed this is a feature of the IDE that happens without key pressing. No character appears when typed. Operations like Select All, Cut, Copy and Paste etc. only work through the Edit menu or right mouse button menu. It is possible to select pieces of text with the left mouse button. I made sure Read Only option is off. But this is not even relevant, because all mappings are useless. F12, for example, only works from Form Editor to Source Editor, not the other way around). Running: KDE Plasma 6.2.5, Qt 6.8.2, X11, fpc 3.2.2, lazarus 3.8. ---------------------------------------------------------------------- zeljko · 2025-02-23 19:33 Some users reported that problem is virtual keyboard on some systems eg cinnamon. I cannot reproduce here qt5/qt6, Linux Mint 22, KDE Plasme, Gnome, xfce, cinnamon, even WindowMaker works fine. ---------------------------------------------------------------------- dbannon · 2025-02-24 11:27 I have a report from a user with a similar problem but Ubuntu 24.04. KDE, x11, Qt5 app. And, strange as it might sound, switching to Wayland (turns, spits in ground), the problem goes away. Paulo, can you switch your Manjaro to Wayland as a test ? Davo ---------------------------------------------------------------------- greye · 2025-02-24 12:40 Hi, same Problem here. Ok, nearly the same. On one computer, QT5/6 works in Fedora 41 and KDE, but not in Cinnamon. There are the problems as described. But on another Computer with Fedora 41 and Cinnamon, it works as expected. Maybe someone has an idea, what could be the problem … 42m ---------------------------------------------------------------------- zeljko · 2025-02-25 08:13 Somebody reported here or on stackoverflow (really cannot remember) that problem arises from cinnamon virtual keyboard (whatever it's name is). Search for cinnamon virtual keyboard and try to disable it and see if it works. ---------------------------------------------------------------------- PauloVlw · 2025-02-26 01:19 Quote from: dbannon on February 24, 2025, 12:27:00 pmPaulo, can you switch your Manjaro to Wayland as a test ? Not working either. Quote from: zeljko on February 25, 2025, 09:13:24 amSomebody reported here or on stackoverflow (really cannot remember) that problem arises from cinnamon virtual keyboard (whatever it's name is). Search for cinnamon virtual keyboard and try to disable it and see if it works. I tried all virtual keyboards available on Wayland (fcitx5, maliit, IBus), and also tried disabling it, but to no avail. I guess X11 don't use these virtual keyboards. I didn't even find this option. ---------------------------------------------------------------------- PauloVlw · 2025-02-26 02:09 Okay, guys, I managed to solve this weird behavior. Quotetl;dr: it was caused by an internet banking program called warsaw. After removing it, Lazarus is working normally; First, I tested on a fresh install. Lazarus IDE worked as intended. This meant there was something on my main system that was causing conflict. I had a glimpse of memory from years ago when I had issues on LibreOffice. It turns out it was caused by a program called warsaw, which is largely used in Brazil to allow internet banking transactions. This particular issue forced me to run LibreOffice through flatpak, as I had to keep warsaw installed at the time. I removed warsaw and Lazarus began working normally on X11 and Wayland. Thank you for the support.