[REBOL] Capturing Key Presses in View Re:
From: allen:rebolforces at: 28-Sep-2000 0:37
Here is an example that shows using the keycodes with a variety of styles.
For using this with lists look at the FAQ in the rebol.com directory in the
test panel, also at FuncBrowse in my RF Reb.
; all doing the same action, so I'll just define it once
action-block: [print mold face/keycode]
view layout [
size 200x200
key keycode [left] action-block
arrow right yellow keycode [right] action-block
text "Down" keycode [down] action-block
button "Up" keycode [up] action-block
key keycode [home] action-block
key keycode [end] action-block
key keycode [page-up] action-block
key keycode [page-down] action-block
]
Cheers,
Allen K