Virtual keyboard input question
-
Hi!
When I use the "input" keyword in a program, the virtual keyboard shows up and when I write something and then press "+" to confirm, the program keeps running but the keyboard doesn't hide, it's still on the screen.
Is this normal or is it a bug?
How can I hide it?Thanks!
-
-
If I write "hideKeyboard()" just after an "input" command, should it work?
question = input("Type your question here")
hideKeyboard()
sleep(1)
print("Are you ready to know your fortune?")
update()
sleep(1)It occurs the same thing, the keyboard doesn't hide.
-
Huh, I don't remember it behaving like that before but I get the same result. You could add a clear() on the next line after input but that will also clear anything you might have had on the screen before. I think this is a bug so I'll report it. Thank you for bringing it to our attention!
-
No problem, thank you 👍
-
@kat said in Virtual keyboard input question:
Huh, I don't remember it behaving like that before but I get the same result. You could add a clear() on the next line after input but that will also clear anything you might have had on the screen before. I think this is a bug so I'll report it. Thank you for bringing it to our attention!
I stumbled up on this problem too, when I coded the tutorial "The Fortune Teller" of the second booklet for beginners. Fortunately I had the same idea with the clear() function.
-
Just wanted to update, this will be addressed in the next patch.