Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Intercept key press

From: davidegessi:tin:it at: 13-Dec-2002 16:17

> -----Original Message----- > From: [rebol-bounce--rebol--com] [mailto:[rebol-bounce--rebol--com]]On Behalf Of > Anton > Sent: venerd́ 13 dicembre 2002 7.08 > To: [rebol-list--rebol--com] > Subject: [REBOL] Re: Intercept key press > > Hi Davide, > > This example modifies the feel of the window face: > > view/new lay: layout [ > my-field: field my-field2: field > ] > > lay/feel: make lay/feel [ > detect: func [face event][ > if event/type = 'key [ > print [ > event/key > all [ > system/view/focal-face > system/view/focal-face/var > ] > ] > ] > event ; return the event > ] > ] > > wait none > > (view sets the window feel, that's why you need to > specifically view/new, set your feel, > then wait for events afterwards.) > > Anton.
Thanks Anton, now it's clear ! I'll use your code. Davide