[REBOL] Re: Enter Key
From: greggirwin:starband at: 1-Sep-2001 11:19
Hi Ammon,
<< Does anyone know the string for the enter key? >>
It looks like #"^M". I found this out by using a snippet Allen Kamp wrote
that is in a View doc from CodeConscious.
REBOL []
key-event: func [face event] [
if event/type = 'key [
print mold event/key
]
event
]
insert-event-func :key-event
view layout [
text {Type and see the char or keycode printed in console}
button "Remove Event & Close" 200 [
remove-event-func :key-event unview/all
]
]
Great stuff Allen! Thanks!
--Gregg