[racket] Keyboard input in DrRacket

From: Miguel Villaverde (mvillaverde at gmail.com)
Date: Fri Mar 18 16:15:21 EDT 2011

I just found out that this doesn't work for Italian keyboard layouts (http://en.wikipedia.org/wiki/Keyboard_layout#Italian). Sorry about the bad info. :(

-----Mensaje original-----
De: Miguel Villaverde [mailto:mvillaverde at gmail.com] 
Enviado el: viernes, 18 de marzo de 2011 20:43
Para: 'Pierpaolo Bernardi'
CC: 'users'
Asunto: RE: [racket] Keyboard input in DrRacket

Alternatively, you could try the combination AltGr+4, followed by the next character after the tilde (as if you were typing an accentuated vowel). This works on my Spanish keyboard, where tildes are a nuisance too. I haven't tried on an Italian layout, but I'm guessing it should work.

-----Mensaje original-----
De: users-bounces at racket-lang.org [mailto:users-bounces at racket-lang.org] En nombre de Pierpaolo Bernardi
Enviado el: viernes, 18 de marzo de 2011 13:54
Para: Robby Findler
CC: users
Asunto: Re: [racket] Keyboard input in DrRacket

On Fri, Mar 18, 2011 at 13:37, Robby Findler
<robby at eecs.northwestern.edu> wrote:
> How about this? Make a file somewhere, put the code below in it and
> then use edit|keybindings|add user-defined keybindings... and point to
> the file.
>
> You will probably have to change the "c:c;c:t" to something that isn't
> used on your keyboard; that one is reasonable on a mac (where I'm
> working this morning), but probably not under windows.
>
> Search for "map-function" (a method of keymap%) in the docs to learn
> the notation for those.
>
> ---cut-here---
> #lang s-exp framework/keybinding-lang
> (keybinding "c:c;c:t"
>            (λ (txt evt) (send txt insert "~")))
> ---cut-here---

OK. This solved it. Thanks.

P.

_________________________________________________
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/users




Posted on the users mailing list.