in reply to perl tk [menu accelerator]
The issue is whether or not your GUI application can even get the CTL-N to begin with! This will not happen unless your app window "has mouse focus". When you are testing this, click on the "title bar" of the Tk app before you test entering CTL-N. Also, for debugging, put something like -command => sub{"print ctl-n received\n";}. If you can get this working with mouse focus on your window and want this to work without mouse focus, then a "higher level" of keyboard mapping needs to occur and that is possible, but happens at the overall window manager level rather than at the object level.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: perl tk [menu accelerator]
by kishon (Initiate) on Jun 30, 2009 at 18:32 UTC |