The following script is nonsense but it shows my goal. I want to "remap" the keyboard and be able to bind the keyboard key to the hexadecimal value of the keyboard: F1 -> 0x70.
use strict; use warnings; use Tk; our $name; my $mw = MainWindow->new(); my $entry = $mw->Entry( -textvariable => \$name )->pack(); $mw-> bind('<F1>', sub{entervalue()}); $mw->MainLoop(); exit(0); sub entervalue{ $name = "xxx"; }
I need this solution because I do want to "jump" the layout of a specific keyboard and assign a defined character/string to a specific physical key. Is this possible?
In reply to Tk bind key hexadecimal value by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |