[REBOL] Detecting the Enter key in a field
From: bkalef::csc::com at: 24-Jun-2002 13:26
I'v been playing with this for a while now. I've checked out the
www.rebol.com/how-to/feel.html and I have 'probed the source of field to
see if I could figure out how to do. No luck as of yet.
I used the below code from feel.html to get me started;
view/new layout [
the-box: box "A Box" forest feel [
engage: func [face action event] [
if action = 'key [
either word? event/key [
print ["Special key:" event/key]
][
print ["Normal key:" mold event/key]
]
]
]
]
]
focus the-box
do-events
But can't seem to get this same type of functionality to work with a 'field
instead of a box.
Regards,
Brock