Re: [racket] key event problem

2012-04-18 Thread Pierpaolo Bernardi
On Wed, Apr 18, 2012 at 12:39, Roelof Wobben wrote: > Op 18-4-2012 12:32, Pierpaolo Bernardi schreef: > >> On Wed, Apr 18, 2012 at 11:17, Roelof Wobben  wrote: >>> >>> Hello, >>> >>> I try to make a function which controls the key-events. >>> >>> The function does only have to react on backspace ,

Re: [racket] key event problem

2012-04-18 Thread Stephen Bloch
On Apr 18, 2012, at 5:17 AM, Roelof Wobben wrote: > The function does only have to react on backspace , left , right . > Give no reaction on tab , rubout or the other keys with a length more then 1. > When given another key with length 1 it has to insert the key. > > So i thought this would work

Re: [racket] key event problem

2012-04-18 Thread Pierpaolo Bernardi
On Wed, Apr 18, 2012 at 12:32, Pierpaolo Bernardi wrote: > maybe: > > (define (edit e k) >  (cond ((key=? "right" k) >         (if (zero? (string-length (editor-post e))) >           e >           )) >        ((key=? "left" k) >         (if (zero? (string-length (editor-pre e))) >           e >  

Re: [racket] key event problem

2012-04-18 Thread Roelof Wobben
Op 18-4-2012 12:32, Pierpaolo Bernardi schreef: On Wed, Apr 18, 2012 at 11:17, Roelof Wobben wrote: Hello, I try to make a function which controls the key-events. The function does only have to react on backspace , left , right . Give no reaction on tab , rubout or the other keys with a lengt

Re: [racket] key event problem

2012-04-18 Thread Pierpaolo Bernardi
On Wed, Apr 18, 2012 at 11:17, Roelof Wobben wrote: > Hello, > > I try to make a function which controls the key-events. > > The function does only have to react on backspace , left , right . > Give no reaction on tab , rubout or the other keys with a length more then > 1. > When given another key

[racket] key event problem

2012-04-18 Thread Roelof Wobben
Hello, I try to make a function which controls the key-events. The function does only have to react on backspace , left , right . Give no reaction on tab , rubout or the other keys with a length more then 1. When given another key with length 1 it has to insert the key. So i thought this woul