Forum > LCL

Which is the lowest level key handling event?

(1/1)

vfclists:
I'm having some trouble with the use of AddOnKeyDownHandler event which is set at the Application level ie Application.AddOnKeyDownHandler(object, etc/etc) - https://forum.lazarus.freepascal.org/index.php/topic,68851.msg533002.html#msg533002.

It seems some other controls are trapping the keys and I can't find out where that is happening.

Are there some other events that handle the keys at an even lower level? Does the Form handle the event before passing it on to the  Application?

Weiss:
winCRT KeyPressed? 

vfclists:

--- Quote from: Weiss on October 15, 2024, 11:52:08 am ---winCRT KeyPressed?

--- End quote ---

I think that is for Windows CRT applications

jamie:
"AddOnKeyDownBeforeHandler"

use TRUE to ensure its at the top of the list so it will go first.

vfclists:

--- Quote from: jamie on October 15, 2024, 01:28:27 pm ---"AddOnKeyDownBeforeHandler"

use TRUE to ensure its at the top of the list so it will go first.

--- End quote ---

The problem is I'm already using this, but it is not working properly. Something else is handling certain key combinations before this handler is activated.

https://forum.lazarus.freepascal.org/index.php/topic,68851.0.html

Navigation

[0] Message Index

Go to full version