Doubled keys in ide editor
Original Reporter info from Mantis: mftq75
-
Reporter name: C Western
Original Reporter info from Mantis: mftq75
- Reporter name: C Western
Description:
I have recently upgraded to Fedora 32 beta (though I think the packages are pretty close to their final versions). The Lazarus IDE misbehaves - in the editor all characters entered are doubled up. It is specific to the editor window - other dialog boxes and my applications work fine. A little debugging indicated that the UTF8KeyPress handler (used by SynEdit) is being invoked twice, though I don't entirely understand the logic used. This is with Lazarus trunk, though the same issue manifested with the Lazarus included in the Fedora repositories, so I suspect a recent update to glib2, or a related library.
The attached patch fixed it for me, by adjusting the logic used to avoid multiple key events. The key change is in ClearKey, where the new key value is copied to the saved event.
Steps to reproduce:
TTrryy ttyyppiinngg iinn tthhee eeddiittoorr
Mantis conversion info:
- Mantis ID: 36976
- OS: Linux
- OS Build: Fedora 32 beta
- Platform: x86_64
- Version: 2.0.9 (SVN)
- Fixed in revision: 63089 (#6528ab5a)