X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/81aefba6ac586eccbe18b4e90efc175e34fff5ad..77ac3d52d89913a79cca834d882c54a58c15a488:/keyboard.plp?ds=sidebyside
diff --git a/keyboard.plp b/keyboard.plp
index ac9df32..f1d5634 100644
--- a/keyboard.plp
+++ b/keyboard.plp
@@ -3,7 +3,7 @@
Html({
title => 'keyboard cheat sheet',
version => '1.0',
- stylesheet => [qw'light dark circus mono red terse'],
+ stylesheet => [qw( light dark circus mono red )],
keys => 1,
});
@@ -12,17 +12,7 @@ Html({
normal mode (default)
-
-
--
-
-
-
<:
-our %sign;
use Shiar_Sheet::Keyboard 2;
my $usint = [
[ 'a' .. 'z'],
@@ -35,48 +25,22 @@ 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]
$usint->[2]->[$i]"]
- } 'a'..'z'
+ $usint->[0]->[$_] => "$usint->[1]->[$_]
$usint->[2]->[$_]"
+ } 0 .. $#{ $usint->[0] }
},
});
$keys->map($get{map}) or undef $get{map};
$keys->print_rows($get{rows}, [0]);
:>
-
-
-
-
- - info
-
- Info command: shows/does something without altering anything.
-
- motion
-
- positioning
-
- Other movement (jumps, window (re)positioning).
-
- command
-
- Direct action command.
-
- ins mode
-
- Enters Insert or Replace mode.
-
- mode
-
- Enters a different mode.
-
- vis mode
-
- Enters Visual or Select mode.
-
- key cmd
-
- Additional key commands (click for overview).
-
-
-
-
-
-
- keyboard map is
<:= $get{map} ? 'set to ' : '' :><:= $keys->{map} :>