From: Mischa POSLAWSKY Date: Fri, 16 Jun 2017 14:40:03 +0000 (+0200) Subject: keys: treat escape row as unshifted X-Git-Tag: v1.11~44 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/2b09a029e9c61ee24caaab28accb6a44e7125ba7 keys: treat escape row as unshifted Set first meta mode to fix keyboard navigation. --- diff --git a/Shiar_Sheet/Keyboard.pm b/Shiar_Sheet/Keyboard.pm index 0ccd9c2..c5fdb09 100644 --- a/Shiar_Sheet/Keyboard.pm +++ b/Shiar_Sheet/Keyboard.pm @@ -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{\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 : '') {