Keyboard tracker?

I want to track when your typing in a text box and you press the enter button, is there an extension to do so or what would the code be to do it manually.

1 Like

try the TextboxChanged event of the textbox component
unknown

or the textbox extension App Inventor Extensions: Textbox | Pura Vida Apps and its EnterPressed event

Taifun

This is for you

I tried that but I couldn't find a straight forward way to track when the enter key is pressed, I did get the text box extension that Taifun recommendation

"the textbox extension App Inventor Extensions: Textbox | Pura Vida Apps and its EnterPressed event"

1 Like

Why is my code for the enter trigger not working now?

1 Like

In the comparison block, change one block.

Instead of url.Text use url

I made that change but it would not work still all though when I entered a url it said that it could not complete the ssl connection

Try the enter pressed example project downloadable from the download section here App Inventor Extensions: Textbox | Pura Vida Apps and let us know, if this works for you

Taifun

this?
Screenshot 2025-09-17 6.49.30 AM
Screenshot 2025-09-17 6.49.22 AM
Screenshot 2025-09-17 6.47.45 AM
Because I did use it but it didn't really work

Maybe something like this?

Yes, this is the example project
Enter something in textbox1 and press enter. What happens?
Enter something in textbox2 and press enter. What happens?
Try it and let us know if it works for you

Taifun

So i want when the text is entered in to the 1 text box if it is a URL it will go to that but if not it will look it up. I just want to use the enter to search the text like a url text box in google

Yes you can do this, but you forgot to answer the question

Taifun

Sorry, I only have one text box and it does nothing other than sometimes say ssl connection not complete

To find out what's going on, we go step by step
The first step is to find out, if the extension is working. For this there exists an example project. You use that example project to test. Now let me ask again

Taifun

This is the webview not the textbox

Yes but it is triggered if I type an accurate and complete URL and hit enter but nothing happens when it is not a complete url

To answer the question NOTHING and NOTHING

working fine here on companion app as well after building on Samsung Galaxy A54 running Android 15
on a label below the textboxes the entered text will be displayed

how are you testing? which device and Android version are you using? Are you using an emulator? Can you elaborate?

try the apk file from here https://drive.google.com/file/d/1pexeuVBSaHYAmaoCzxsjFVGwh9Cfm15z/view?usp=sharing

Taifun

How would I use the APK, I am testing on mit app inventor version nb202b I am using an the mit companion app and am using the code in the screen shot