X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/0891e329b2f7d14c7ae8b8cdbefda513d1d796a7..adc1751d8423b078e9f0fb7c5cd88ec8cc9f6935:/Shiar_Sheet/Keyboard.pm diff --git a/Shiar_Sheet/Keyboard.pm b/Shiar_Sheet/Keyboard.pm index 6819236..e8e33aa 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 = 'v2.02'; +our $VERSION = 'v2.03'; my @casedesc = (undef, qw/shift ctrl meta/, 'shift meta'); my @rowdesc = qw(numeric top home bottom); @@ -94,7 +94,7 @@ sub print_key { } my ($flags, $desc, $mnem) = @{$flags}; if (my $txt = $self->{key}->{$mode.$key}) { - ($desc, $mnem) = @{$txt}; + ($desc, $mnem) = split /\n/, $txt; } # $key = $keytrans{$key} if defined $keytrans{$key}; @@ -113,7 +113,7 @@ sub print_key { ); $flags .= ' chr'.ord(substr $key, -1) if $key ne '^0'; - print qq{\t\t
  • $keytxt}; + print qq{\t\t$keytxt}; print "\n"; } @@ -126,12 +126,12 @@ sub print_rows { my $defrows = shift || [2, 1, 0]; my @modes = sort keys %{ $self->{def} }; - print '