Keyboard oddity, very low priority, very odd behavior

17 views
Skip to first unread message

Harlan Gilbert

unread,
May 13, 2024, 8:37:56 AMMay 13
to Glowscript Users
For some reason, when listening to the keyboard, certain keyboard combinations cause an infinite number of key presses to be registered. 

When running the following key-listener:
Web VPython 3.2
writing = label("Character count:")
#scene.bind('keydown', keyInput)
count = 0
while(True):
    rate(10)
    keys =  keysdown()
    for key in keys:
        print(key, end="")
        count+=1
        writing.text = "Character count = "  +  count

Pressing ALT or CTRL + certain characters results in an infinite series of keypresses registered. Sometimes this is an infinite number of ALT/CTRLs, sometimes of the accompanying character
This is triggered by typing ALT/CTRL-s, -d, -f, -j, -k, -l, -b, etc.




Harlan Gilbert

unread,
May 13, 2024, 8:40:32 AMMay 13
to Glowscript Users
SHIFT-(letter) also triggers this for many letters.
Reply all
Reply to author
Forward
0 new messages