Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
2htdp/universe: "rshift" key event breaks key=? #171
Originally submitted on: Thu Jan 19 17:48:01 -0500 2012
Big-bang generates "rshift" key events when the right shift key is pressed, but "rshift" is not a key event according to key-event?, so any code that uses key=? to compare key events will break when right shift is pressed, giving: key=?: expects a KEY-EVTS as first argument, given "rshift"
Steps to Reproduce:
Run this program and press the right-side shift key (tested on Mac OS X Lion): #lang racket (require 2htdp/universe) (require 2htdp/image) (big-bang 0 (on-key (λ (_ ke) (key=? ke ke))) (to-draw (λ (_) (empty-scene 10 10))))
This bug was converted from Gnats bug 12500.