[plt-scheme] Re: Windows + remapped keyboard: DrScheme misinterpreting AltGr characters as commands

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Tue Jun 30 08:17:56 EDT 2009

Hi, sorry there hasn't been any more informative reply. This is the right group.

The code below (run it in the "module" language in drscheme, or put it
in a file and run "mred-text file.ss" from the shell prompt) will
print out the key code of your key presses.

I see that version 4.2 (the latest release) has fewer altgr-related
methods and perhaps you may find that simply trying out the nightly
builds (http://pre.plt-scheme.org/installers/) will fix the problem
for you.

If not, I think you want to start with the code below and add calls to
various methods in the list that has a call to the get-key-code below
and look for output that doesn't seem right.

(I'm afraid that we will need your help with this one, simply because
it seems hard to reproduce your setup.)


#lang scheme/gui

(define c%
  (class canvas%
    (define/override (on-char evt)
      (printf "~s\n" (list (send evt get-key-code))))

(define f (new frame% [label ""] [width 200] [height 200]))
(define c (new c% [parent f]))
(send c focus)
(send f show #t)

On Tue, Jun 30, 2009 at 4:09 AM, Elena<egarrulo at gmail.com> wrote:
> I apologize for raising this thread again, but this issue is keeping
> me from using DrScheme. Maybe this is the wrong group?
> Thanks
> On 24 Giu, 09:40, Elena Garrulo <egarr... at gmail.com> wrote:
>> Hi,
>> I use an heavily remapped keyboard (keyboard layout DLL + scan codes
>> remapped by registry) on Windows, and DrScheme seems to interpret
>> some AltGr combinations (which send characters) as commands.  For
>> instance, AltGr + N should be interpreted as _, whilst moves the
>> cursor or deletes text.
>> No other application misinterprets those characters.
>> How can I troubleshoot that? Maybe by tracing incoming keycodes? How?
>> Software:
>> - Windows XP SP3
>> - PLT Scheme 4.2
>> Thanks in advance
>> _________________________________________________
>>   For list-related administrative tasks:
>>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> _________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme

Posted on the users mailing list.