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

Hi,
I have written an application where a Perl/Tk Program Launches a Browser. I have defined various interaction with the Tk Window. (via Function keys). This works only when the focus is on Tk-Window and not the browser. When focus is on Browser, the traditional 'F1' for help is activated when F1 is pressed. Is there anyway to avoid this?.
Or is there any way to have Function keys working for TkWindow while having Focus on the Browser?

Thanks,
Artist

Replies are listed 'Best First'.
Re: Blocking Window Keys
by stefp (Vicar) on Oct 30, 2001 at 03:06 UTC
    The material documented in Tk::grab should get you there.

    -- stefp

Re: Blocking Window Keys
by John M. Dlugosz (Monsignor) on Oct 30, 2001 at 03:38 UTC
    Why is blocking the traditional "help" keypress a good thing?
      Blocking the help for the browser is a good thing for my application.
      Since the browser is launched from the Tk Application,and it as per what is indented, F1 should open up help for my application and not for the browser.

      I will definitely look at Tk::Grab

      Thanks,
      Artist