From 2b09a029e9c61ee24caaab28accb6a44e7125ba7 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Fri, 16 Jun 2017 16:40:03 +0200 Subject: [PATCH] keys: treat escape row as unshifted Set first meta mode to fix keyboard navigation. --- Shiar_Sheet/Keyboard.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 : '') { -- 2.30.0