Keyboard stops working
Posted
#1
(In Topic #402)
Trainee
Thanks
Posted
Enthusiast

Posted
Trainee
Public Sub Button1_Click()
If LCDLabel1.visible = False Then
LCDLabel1.visible = True
LCDLabel1.Text = "Hi There"
Else
LCDLabel1.visible = False
Endif
End
Public Sub Button2_Click()
Form.Close()
Quit
End
Pretty simple. 2 buttons and an LCDLabel.
Works fine on my Ubuntu 18.04 machine.
Posted
Enthusiast

Or are you saying that the program or computer locks up?
the program does not lock up on my Mint 19.3 which is also ubuntu
Posted
Guru

I have to agree with grayghost4. The program runs but you are not requesting any keyboard response from the program.
Try changing the Text Property of Button1 to &Go You can then use the [Alt] + G keyboard shortcut to test that the keyboard is working.
The use of Quit is not recommended in GUI programs. I suggest Me.Close instead.
When you post code use the gb button and this will happen: -
Posted
Trainee
Have you tried using infra red keyboards? They're supposed to be super fast and responsive, so maybe that could help with the issue. But if that doesn't work, it might be worth looking into any potential conflicts with your system or other applications.
One thing you could try is running your app in debug mode and seeing if any error messages pop up related to the keyboard issue. It could be a simple coding error or something more complicated, but either way, it's worth investigating.
Posted
Guru

What os version is your linux lite? (ie debian ubuntu?)
How did you install gambas?
Posted
Guru

Because if it was a gambas issue then the gambas IDE would cause your keyboard lock up not just running your test program.
Post the program not just the code (use the Project/Make source archive menu item)
Posted
Guru

Press "Copy" to copy the info there and paste it here.
that is helpful info when helping with issues.
Posted
Enthusiast

Posted
Guru

grayghost4 said
This is a 3 year old thread, and the OP has not been back since then
hahaha
Thank you , I missed that
1 guest and 0 members have just viewed this.



