[REBOL] Re: keymap in text style feel/engage
From: brett:codeconscious at: 21-Apr-2002 10:30
Hi DocKimbel,
> I don't think so, 'view* is defined in ctx-text.
I like your "where?" function - that is going to be very handy. :^)
Anton, the the engage function you are interested in lives in a shared feel
object "ctx-text/swipe":
>> same? ctx-text/swipe get in get-style 'text 'feel
== true
>> same? ctx-text/swipe get in get-style 'txt 'feel
== true
>> same? ctx-text/swipe get in get-style 'h1 'feel
== true
>> same? ctx-text/swipe get in get-style 'body 'feel
== true
That is - every style except LABEL that is derived from VTEXT
- see http://www.codeconscious.com/rebsite/vid-ancestry.r
I think if you bind your new modified engage function to "in ctx-text 'self"
you will
find that both view* and keymap will be set correctly. Also for free, you
get
copy-text and unlight-text set too which you will probably need.
Regards
Brett.