Recent

Author Topic: Which is the lowest level key handling event?  (Read 413 times)

vfclists

  • Hero Member
  • *****
  • Posts: 1146
    • HowTos Considered Harmful?
Which is the lowest level key handling event?
« on: October 11, 2024, 03:25:53 am »
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?
Lazarus 3.0/FPC 3.2.2

Weiss

  • Full Member
  • ***
  • Posts: 183
Re: Which is the lowest level key handling event?
« Reply #1 on: October 15, 2024, 11:52:08 am »
winCRT KeyPressed? 

vfclists

  • Hero Member
  • *****
  • Posts: 1146
    • HowTos Considered Harmful?
Re: Which is the lowest level key handling event?
« Reply #2 on: October 15, 2024, 12:46:50 pm »
winCRT KeyPressed?

I think that is for Windows CRT applications
Lazarus 3.0/FPC 3.2.2

jamie

  • Hero Member
  • *****
  • Posts: 6735
Re: Which is the lowest level key handling event?
« Reply #3 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.
The only true wisdom is knowing you know nothing

vfclists

  • Hero Member
  • *****
  • Posts: 1146
    • HowTos Considered Harmful?
Re: Which is the lowest level key handling event?
« Reply #4 on: October 15, 2024, 01:36:42 pm »
"AddOnKeyDownBeforeHandler"

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

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
Lazarus 3.0/FPC 3.2.2

 

TinyPortal © 2005-2018