Recent

Author Topic: LAMW OnSpecialKeyDown event  (Read 2649 times)

dseligo

  • Sr. Member
  • ****
  • Posts: 343
LAMW OnSpecialKeyDown event
« on: July 11, 2021, 05:29:34 pm »
I use OnSpecialKeyDown event of jForm to catch keys from soft keyboard.
If I use additional characters (language specific) - long press key and then choose them - event is not fired.

How to catch this keys?

jmpessoa

  • Hero Member
  • *****
  • Posts: 1913
Re: LAMW OnSpecialKeyDown event
« Reply #1 on: July 11, 2021, 06:51:32 pm »
Quote
I use additional characters...

But, OnSpecialKeyDown is just for "Special" key ...

What "Special" key you need add??
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

dseligo

  • Sr. Member
  • ****
  • Posts: 343
Re: LAMW OnSpecialKeyDown event
« Reply #2 on: July 12, 2021, 02:57:59 am »
I didn't know that OnSpecialKeyDown is only for 'special' keys, because it works for most soft keys (on screen keyboard) as well.
It doesn't fire for keys when you long press a letter and then choose letter above (I attached example for letter 'A').

So OnSpecialKeyDown isn't proper way to catch soft keys. What is proper way of doing this (like OnKeyDown form event in LCL)?

jmpessoa

  • Hero Member
  • *****
  • Posts: 1913
Re: LAMW OnSpecialKeyDown event
« Reply #3 on: July 12, 2021, 07:00:12 am »
Quote
like OnKeyDown form event in LCL ...

Ok. I will try implement  OnKeyDown .... (if the android lets...)
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

 

TinyPortal © 2005-2018