X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/a0208e056389c8d9d21f9b0d8bf093e087809b21..a401632a210413c3a4f0237c8fd8986bdf45934c:/Shiar_Sheet/Keyboard.pm diff --git a/Shiar_Sheet/Keyboard.pm b/Shiar_Sheet/Keyboard.pm index 58d7da2..9456b7d 100644 --- a/Shiar_Sheet/Keyboard.pm +++ b/Shiar_Sheet/Keyboard.pm @@ -5,7 +5,7 @@ use warnings; no warnings 'uninitialized'; # save some useless checks for more legible code use Carp; -our $VERSION = '1.02'; +our $VERSION = '1.03'; my @casedesc = (undef, qw/shift ctrl meta/, 'shift meta'); my @rowdesc = qw(numeric top home bottom); @@ -97,6 +97,7 @@ sub print_key { $onclick .= sprintf(q{ onclick="document.location='%s'"}, $1) if $flags =~ s/ ?\blink(\S*)//; my $keyhint = defined($mnem) && qq{ title="$mnem"}; + $flags .= ' chr'.ord(substr $key, -1) if $key ne '^0'; print qq{\t\t
  • $keytxt}; print ' ', $desc if defined $desc;