Sign in Join

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

Mailing lists / lazarus / 2011-06

No key events while a mouse button is pressed (Carbon)

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

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

Konstantinos Michalopoulos

Hi all,

I think i found a bug in the Carbon widgetset: there is no key down/up event reported when a mouse button is pressed. This little test shows the issue:

http://dl.dropbox.com/u/5698454/lazkeytest.tar.bz2

Simply press some keys to see the normal behaviour. Now press the mouse button over the form and keep the mouse down. Press some keys and see how no events are generated.

I need the keys to be reported so i can cancel some operation done with the mouse with the Escape key (in my program i use the mouse to drag 3D elements in viewports, but while the element is dragged if someone presses the Escape key the move operation is cancelled).

Initially i thought this is a Mac OS X limitation but i tried to drag stuff in the dock, in Finder and in Safari and escape was reported so i assume that this is a LCL issue. Any thoughts on this?

Kostas "Bad Sector" Michalopoulos

Reply by email