Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-01

A difference in keyhanding between Gtk2 and Darwin?

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Torsten Bonde Christiansen

Hi List.

I have noticed a difference in the logical way key events works on Gtk2 and Darwin.

If i change the value of UTF8Key to "" (empty string) in an overridden method of DoUTF8KeyPress,
then on Gtk2 the event is stopped and doesn't propegate to neither LCL nor the OS.
However if I do the same on Darwin a subsequent set of event are fired, amongst those a CN_CHAR
event and if not handled, then it is send to the OS.

Is this a bug, then i'll report it in the bug-tracker.

Regards,
Torsten Bonde Christiansen.

ps. using on both machines:
FPC: 2.6.0
Lazarus 1.1 (rev 39757)

Reply by email

Mattias Gaertner
to Torsten Bonde Christiansen
Show quoted text 14 lines
Hi List. I have noticed a difference in the logical way key events works on Gtk2 and Darwin. If i change the value of UTF8Key to "" (empty string) in an overridden method of DoUTF8KeyPress, then on Gtk2 the event is stopped and doesn't propegate to neither LCL nor the OS. However if I do the same on Darwin a subsequent set of event are fired, amongst those a CN_CHAR event and if not handled, then it is send to the OS. Is this a bug, then i'll report it in the bug-tracker.

Please report the bug.

Mattias

Reply by email