Although key events from `racket/gui` cannot report the press of Caps
Lock as an independent event, each key event reports whether Caps Lock
is currently on, which I think is relevant here.
For example, using
(define mainTextArea (new (class text%
(define/override (o
IIRC, capslock can’t be handled by applications. When people customize
capslock to do something else, what they actually do is to ask their OS to
redirect the capslock keypress to other keys (say, F2), and then intercept
these other keys instead.
To catch keypresses like F2, create your own class
2 matches
Mail list logo