Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I'm using Solaris OS v.5.6, perl 5.6.1.

My problem is that my perl program is not honoring the numlock key. No matter what the status of numlock is, if I use the keypad I'm getting KP_Insert instead of a 0, etc.

The keysym program from Chapter 15 of Mastering Perl/Tk does the same thing.

Can anyone help?

Replies are listed 'Best First'.
Re: numlock not recognized
by PodMaster (Abbot) on May 28, 2003 at 18:45 UTC
      Thank you, in part. I have narrowed the problem to the Tk::Entry widget. The 4 and 6 on my keypad are treated as arrow keys regardless of whether numlock is on or not. I'll go peruse some more documentation, I guess!
        This probably doesn't apply to Solaris, but I remember from years back doing things like that with PC keyboards and you had to check for a double keystroke - ESC plus the corresponding code for your key.

        Hope that helps!

        There is no emoticon for what I'm feeling now.