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

Konstantinos Michalopoulos badsectoracula at gmail.com
Wed Jun 29 11:00:22 CEST 2011


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





More information about the Lazarus mailing list