Native controls in Linux-GTK2 do not trigger OnUtf8KeyPress for keys ^A..^Z
Original Reporter info from Mantis: Bart @flyingsheep
-
Reporter name: Bart Broersma
Original Reporter info from Mantis: Bart @flyingsheep
- Reporter name: Bart Broersma
Description:
If you press Ctrl+A (or any other Key up to and including Ctrl+Z) in a native control then there will be no Utf8KeyPress but only a KeyPress.
Steps to reproduce:
Build and run attached sample project.
In the TEdit type ^A (Ctrl+A) an watch the output.
There is a OnKeyDown and a OnKeyPress, but no OnUtf8KeyPress.
On win32 and Linux-QT there will be an OnUtf8KeyPress in these circumstances.
Additional information:
The function GetSpecialKey returns #0 for these inputs and therefore no Utf8KeyPress is invoked.
Attached patch fixes it, but needs reviewing, because I am not sure if it can have unwanted side effects.
Mantis conversion info:
- Mantis ID: 26121
- OS: Linux
- OS Build: Fedora Core 18
- Build: r44960
- Platform: i386
- Version: 1.3 (SVN)
- Fixed in revision: r45729 (#1f2b6a6e)