[plt-scheme] Key bindings
I can't help you with that key, but maybe it would work to indicate
the modifiers you type in order to make it appear? Or is that an
unmodified key on your keyboard?
Anyways, here is a version of your module that does what you want, but
uses the control-j keybinding.
(module javi (lib "keybinding-lang.ss" "framework")
(require (lib "tool-lib.ss" "drscheme"))
(keybinding "c:j"
(lambda (editor event)
(send
(send editor get-keymap)
call-function
"insert-()-pair"
editor event #t))))
hth,
Robby
On 9/17/07, Javier <javuchi at gmail.com> wrote:
> Hello, I'm new to the list.
> I'm using Dr Scheme to do some programing, and want to assign some
> keybindings for my spanish keyboard. That is, I want to associate the
> key " º " to the insert-()-pair function, so I do:
>
> (module javi
> (lib "keybinding-lang.ss" "framework")
>
> (require (lib "tool-lib.ss" "drscheme"))
>
> (keybinding "º"
> (lambda (editor event)
> (send
> (send editor get_keymap)
> call-function
> "insert-()-pair"
> editor event #t))))
>
>
> But I got two errors: numer one saying that "º" is not a valid
> keybinding, and second something related with "insert-()-pair", which
> I think is not a valid funcion inside Dr Scheme itself.
>
> Can anyone help me with this?
> Is it planned for Dr Scheme to let the user configure graphically the
> keybindings in the future?
>
> Thank you._________________________________________________
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>