[REBOL] Re: Inform & keyboard
From: gscottjones:mchsi at: 10-Jul-2002 10:18
> I want to put up a dialog box and press Escape
> to cancel it or Enter to confirm it.
> But it looks like inform isnt compatible with keyboard input.
> Sensors dont seem to work and keyboard shortcuts on buttons dont work
> Its not a showstopper but would make my program more user friendly.
> Any ideas .... or does anyone have some example for me to study?
I'm sure that there are several ways. One way is demonstrated as follows:
l: layout [
text "Press Return or Escape"
key keycode #"^M" [
key keycode escape [
view layout [
t: text 100x16 "none"
button "Get Dialog" [
view/new/offset l 100x100
Hope this helps. (Gotta keep that great email client as user friendly as