Key pressed - Forum

Forum Navigation
You need to log in to create posts and topics.

Key pressed

I post this message in place of @roccocogliano as it's blocked by the protection system (don't know why)

Hi,
sorry for the perhaps trivial question, but how can I intercept a key pressed on the keyboard in the "key-down" event associated with a specific object, for example associated with a specific inputbox? I do not find examples of this. I tried "onKeyDown", it works but it refers to the whole app and not the single object.

Thanks so much
Rocco

Hi @roccocogliano

Please take a look at the attached sample app and let me know if this is what you need.
Regards.

Uploaded files:
  • You need to login to have access to uploads.
roccocogliano has reacted to this post.
roccocogliano
Quote from luishp on April 15, 2021, 2:15 pm

Hi @roccocogliano

Please take a look at the attached sample app and let me know if this is what you need.
Regards.

Ok, thanks @luishp. Maybe I expressed myself badly. Maybe because of my poor English, I'm sorry. I meant: how to know if I pressed Enter or another key on an input box? In the key-down event I want to intercept the pressing of the Enter key and act accordingly.
Now I hope I have been clearer.

Thanks a lot anyway
Rocco

@roccocogliano please check the modified attached app. It's solved with just a bit of JavaScript.
Regards.

Uploaded files:
  • You need to login to have access to uploads.
roccocogliano has reacted to this post.
roccocogliano

Thanks @luishp.
You are great.

Rocco

luishp has reacted to this post.
luishp