keys: treat escape row as unshifted
authorMischa POSLAWSKY <perl@shiar.org>
Fri, 16 Jun 2017 14:40:03 +0000 (16:40 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 17 Jul 2017 15:13:43 +0000 (17:13 +0200)
Set first meta mode to fix keyboard navigation.

Shiar_Sheet/Keyboard.pm

index 0ccd9c2e43ecdeef60e4af7d35e01394254f57ac..c5fdb09fdb7fa37bc28272c8f25ac2c21931195b 100644 (file)
@@ -6,7 +6,7 @@ use warnings;
 no  warnings 'uninitialized';  # save some useless checks for more legible code
 use Carp;
 
-our $VERSION = 'v2.05';
+our $VERSION = 'v2.06';
 
 my @casedesc = (undef, qw/shift ctrl meta/, 'shift meta');
 my @rowdesc = qw(numeric top home bottom);
@@ -142,7 +142,7 @@ sub print_rows {
                printf qq{<tbody class="row row%d">\n}, $row+1;
                for my $basemode (@modes) {
                        my @moderows = split /\s+/,
-                               $row < 0 ? "0" :
+                               $row < 0 ? '1' : # top row (esc key) always unshifted
                                $moderows{$basemode} // $moderows{-DEFAULT};
 
                for my $submode (@moderows ? @moderows : '') {