How do you call a function when the Enter key is pressed in a python guizero application?
For reference I've created a form that takes input from a barcode scanner and on the event of the Enter key being pressed it will insert the input into a database.
Here is an example of the TextBox
and how the function should work.
def enterKeyClicked():
dbInsert()
input = TextBox(app, width=30, align="top")
I checked the guizero github pages documentation for events, but I have not been able to figure it out.