develooper Front page | perl.tcltk | Postings from November 2021

Re: help Keyboard and Tk

Thread Previous
Christopher Chavez
November 8, 2021 12:01
Re: help Keyboard and Tk
Message ID:
> All key good, but I have a problem with the key f10.
> I can see F10 in the consol, no problem.
> But in windows 10, f10 open the menu.

For a very long time, it has been conventional behavior for many programs on Windows (not just Tk) for F10 to “activate” the menu. Tk having this binding by default on Windows is likely for intentionally conforming to platform convention, so that Windows users find that pressing F10 behaves as they may expect it to.

Maybe someone else has a better answer about how to actually override this binding if desired, but I personally would avoid trying to bind to F10 on Windows.

Christopher A. Chavez

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About