Now, the binding doesnt work when window is out of focus... (as someone said is impossible to make working in tk in some other thread here at PerlMonks...)use Tk; my $main = new MainWindow(-title => "Global Testing"); $main->bind("<KeyPress>", sub {print "Hello there!"}); MainLoop;
In reply to Re^2: Creating keybinds GLOBALY!
by Ace128
in thread Creating keybinds GLOBALY!
by Ace128
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |