brickviking / qb64

The official home for the QB64 source code and wiki.
https://qb64.com
Other
0 stars 0 forks source link

two related keyboard bugs #1

Open brickviking opened 2 years ago

brickviking commented 2 years ago

QB64 info (please complete the following information):

To Reproduce Steps to reproduce the behaviour:

  1. Start up IDE
  2. Load up a .bas file or type one in.
  3. Type something in a line, and try to undo it with Ctrl-Z, then move the cursor.
  4. On Gnomeshell, the content doesn't undo. On Xmonad, the whole screen starts scrolling instead of moving the cursor within the text.

Expected behaviour Control key works, including all the shortcuts that QB64 uses.

brickviking commented 2 years ago

An additional note, at least on my system: qb64's IDE works properly over on KDE, both Control keys work as they're supposed to. It's also the same for dwm, and the CDE running under mwm. So something's strange with xmonad and gnome-shell. I won't actually post this at the main project until I have hard-and-fast repeatability on more than one system.

brickviking commented 2 years ago

A program compiled by qb64 also appears to have the same hangups on my machine. Strangely, over on a 64-bit Ubuntu 22.04 machine, the Left control key doesn't work in the QB64 IDE, but the right control key does.

brickviking commented 2 years ago

Windows Vista and Windows XP don't show the same bugs, though they do show some oddities. Additionally, QB64PE also shows the same bug regarding the Control key on my machine.

brickviking commented 2 years ago

One of the other weird things I discovered while diagnosing this is: if I plug in a K800, along with its associated stubby, the left control and right control keys both work under Xmonad. Curiouser and curiouser.

Rebooting returns the keyboard to their not-quite-working-properly state, unfortunately. If I then boot up into xmonad, and unplug the stubby and then plug it back in, the key restores proper behaviour.

brickviking commented 2 years ago

Okay, I seem to have been able to fix the bug myself, but only temporarily; the details are below:

I have a Logitech K750 solar keyboard (one of the few on the market), and it was showing an oddity regarding the left Control key and right Control key, under Xmonad and Gnome-Shell. Unpairing and pairing the keyboard back to the same stub seems to have repaired the bug.

However, the issue still seems to remain on an Ubuntu machine with an identical keyboard (not the same keyboard, but the same model keyboard). It also seems to continue to happen with GnomeShell.