[Date Prev][Date Next][Thread Prev][Thread Next]
[Search]
[Date Index]
[Thread Index]
[MacPerl-Toolbox] Re: [MacPerl] Capturing keystrokes with Mac::Windows and Mac::Events
- To: macperl@macperl.org (MacPerl List), macperl-toolbox@macperl.org (MacPerl Toolbox List)
- Subject: [MacPerl-Toolbox] Re: [MacPerl] Capturing keystrokes with Mac::Windows and Mac::Events
- From: kpreid@ibm.net (Kevin Reid)
- Date: Sun, 25 Apr 1999 21:43:47 -0400
- In-Reply-To: <199904251340.JAA13220@mail.bit-net.com>
- Organization: Reid & Hoffman
> Hi. I'd like to know how to find out what key was pressed from a key event
> handler, as in
>
> $win->sethook('key' => \&key_press);
sub key_press {
my $key = chr $_[1];
print "You typed $key.\n";
}
[Crossposted and Reply-To set to macperl-toolbox list.]
--
Kevin Reid: | Macintosh:
"I'm me." | Think different.
==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-toolbox-request@macperl.org