[REBOL] Re: Examining the layout object
From: anton::lexicon::net at: 3-Jul-2002 13:10
Well, as written right in front of you, it's a char! or a word!
From memory, there are words like:
'page-up, 'page-down, 'left or 'left-arrow...
floating around in VID-land somewhere.
Otherwise, it's a specific character.
Here's a quick test I did.
A layout with a button that responds to the "h" key
(but does nothing about it...)
lay: layout [button #"h" "Hello"]
find-key-face lay #"j" ; == none
find-key-face lay #"h" ; does not return none - a good sign
probe get in find-key-face lay #"h" 'style ; == button
We seem to have found the button.