B B4JExplorer Active Member Licensed User Longtime User Jun 9, 2017 #1 Hi, I'm able to trap ordinary keys inside the TextChanged event. And the Enter key, inside the Action event. But I'm not able to sense when the Escape key is pressed? Is there a specific event that automatically receives the escape key?
Hi, I'm able to trap ordinary keys inside the TextChanged event. And the Enter key, inside the Action event. But I'm not able to sense when the Escape key is pressed? Is there a specific event that automatically receives the escape key?
stevel05 Expert Licensed User Longtime User Jun 9, 2017 #2 The Escape key won't change the text (in the text changed event). Try using the keypressed or keyreleased event instead (example here https://www.b4x.com/android/forum/t...row-keypress-in-a-text-box.76960/#post-487613) Upvote 0
The Escape key won't change the text (in the text changed event). Try using the keypressed or keyreleased event instead (example here https://www.b4x.com/android/forum/t...row-keypress-in-a-text-box.76960/#post-487613)
B B4JExplorer Active Member Licensed User Longtime User Jun 9, 2017 #3 stevel05 said: The Escape key won't change the text (in the text changed event). Try using the keypressed or keyreleased event instead (example here https://www.b4x.com/android/forum/t...row-keypress-in-a-text-box.76960/#post-487613) Click to expand... Steve, Thanks, I already had a keypress event defined, but the Esc key never triggered it. But I just found out the reason - in the AddEventHandler, the event name was spelled wrong; it was cloned from another project, and another event altogether. Everything's good now, except for a question about programmatically cloning labels (another thread), thanks. Upvote 0
stevel05 said: The Escape key won't change the text (in the text changed event). Try using the keypressed or keyreleased event instead (example here https://www.b4x.com/android/forum/t...row-keypress-in-a-text-box.76960/#post-487613) Click to expand... Steve, Thanks, I already had a keypress event defined, but the Esc key never triggered it. But I just found out the reason - in the AddEventHandler, the event name was spelled wrong; it was cloned from another project, and another event altogether. Everything's good now, except for a question about programmatically cloning labels (another thread), thanks.
stevel05 Expert Licensed User Longtime User Jun 9, 2017 #4 B4JExplorer said: except for a question about programmatically cloning labels (another thread) Click to expand... Can you post a link to the thread? I can't find it Upvote 0
B4JExplorer said: except for a question about programmatically cloning labels (another thread) Click to expand... Can you post a link to the thread? I can't find it
B B4JExplorer Active Member Licensed User Longtime User Jun 9, 2017 #5 stevel05 said: Can you post a link to the thread? I can't find it Click to expand... It wasn't written yet. It's on the forum, now. Upvote 0
stevel05 said: Can you post a link to the thread? I can't find it Click to expand... It wasn't written yet. It's on the forum, now.