[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



> 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