keyboard: fix empty key titles
authorMischa POSLAWSKY <perl@shiar.org>
Sun, 18 Jun 2017 12:13:49 +0000 (14:13 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 17 Jul 2017 15:13:44 +0000 (17:13 +0200)
Defunct syntax, broken since commit v1.7-126-ge1226a3e4c (2015-09-22)
[keyboard: dereference class definition includes].

keyboard.plp

index eef05ef..f1d5634 100644 (file)
@@ -25,14 +25,13 @@ my $usint = [
 my $keys = Shiar_Sheet::Keyboard->new({
        def => {
                '' => {
-                       map { $_ => [''] } @{ $usint->[0] }
+                       map { $_ => '' } @{ $usint->[0] }
                },
        },
        key => {
                map {
-                       my $i = ord($_) - ord('a');
-                       $_ => ["$usint->[1]->[$i]<br>$usint->[2]->[$i]"]
-               } 'a'..'z'
+                       $usint->[0]->[$_] => "$usint->[1]->[$_]<br>$usint->[2]->[$_]"
+               } 0 .. $#{ $usint->[0] }
        },
 });
 $keys->map($get{map}) or undef $get{map};