# Capturing key pressed events in a text box

**URL:** <https://techcommunity.softwareag.com/t/capturing-key-pressed-events-in-a-text-box/102285>\
**Category:** Forum\
**Tags:** mobile\
**Created:** [December 11, 2012, 10:34pm UTC](https://techcommunity.softwareag.com/t/capturing-key-pressed-events-in-a-text-box/102285 "2012-12-11T22:34:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [December 11, 2012, 10:34pm UTC](https://techcommunity.softwareag.com/t/capturing-key-pressed-events-in-a-text-box/102285/1 "2012-12-11T22:34:39Z")

</div>

Hi Ian,

My first response would be to suggest that it is a Bad Idea ™ to try  
to search and update on every letter typed, as it would likely have very  
detrimental effects on the application’s performance.

However, if you use nUIEntryElement you should be able to watch for an  
EVT\_POST\_EDIT event and get feedback on individual keypresses.

Spencer

---

<div class="post-metadata">

**Author:** ![Stefan\_Veit](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@Stefan\_Veit](https://techcommunity.softwareag.com/u/Stefan_Veit)\
**Post date:** [December 12, 2012, 7:49am UTC](https://techcommunity.softwareag.com/t/capturing-key-pressed-events-in-a-text-box/102285/2 "2012-12-12T07:49:39Z")

</div>

Hi Ian, Hi Spencer,

we do exactly the same Spencer mentioned, using the EVT\_POST\_EDIT event for getting feedback on individual keypresses.  
Performance depends on how much entries are in your database. We try this with around 20000 data entries for filtering and of course, performance with the Mobile Designer SQLite database was not so good at all…

Regards,  
Stefan

---

<div class="post-metadata">

**Author:** ![Ian\_Ward2](https://avatars.discourse-cdn.com/v4/letter/i/a9adbd/32.png) [@Ian\_Ward2](https://techcommunity.softwareag.com/u/Ian_Ward2)\
**Post date:** [December 11, 2012, 8:11pm UTC](https://techcommunity.softwareag.com/t/capturing-key-pressed-events-in-a-text-box/102285/3 "2012-12-11T20:11:00Z")

</div>

Hi,

We want to search a database by using filtering as letters are typed.

We don’t seem to get the event handler being called for each letter, is this possible?

Cheers

Ian

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:02pm UTC](https://techcommunity.softwareag.com/t/capturing-key-pressed-events-in-a-text-box/102285/4 "2021-04-02T15:02:51Z")

</div>


