(Nov-29-2021, 09:38 PM)deanhystad Wrote: You should ask the author of the keyboard package. I don't understand why you are using the keyboard package at all.
Hi deanhystad, thank you for reply. I realy appreciated your tips about submit the question to package productor,
and i done it on github. I'm using the keyboard package for give to my menu, a little touch of "interactivity".
when menu page is loaded, the keyboard.wait() stand for user input for handle the preset key available
( arrow up, down and enter ) moving the cursor up and down in the menu,
printing the menu page again with moved cursor by user.
If i'dont use a menu like this, menu page could be very boring
That's the reason why 'enter' key pressure need to be catched by keyboard module
because it's not a simple menu with free input from user.
Testing different solution the problem is also available even when i replace the 'enter' key with 'space' key for example,
because when I hit any key, hook(), on_press(), on_release() or any other function of keyboard package,
seems to catch the keys pressure and release, so i'll have two consecutive value even with one key pressure.
Using 'space' input isn't submited, but the values catched after one key pressure, is also double.
Thank you in advance for any other tips ( if you've )