summaryrefslogtreecommitdiffstats
path: root/perl-install/keyboard.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/keyboard.pm')
-rw-r--r--perl-install/keyboard.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/keyboard.pm b/perl-install/keyboard.pm
index 7ee6a3728..27ba9690e 100644
--- a/perl-install/keyboard.pm
+++ b/perl-install/keyboard.pm
@@ -75,8 +75,9 @@ my %keyboards = (
#- Functions
#-######################################################################################
sub list { map { $_->[0] } values %keyboards }
-sub xmodmaps { map { $_ } values %keyboards }
+sub xmodmaps { keys %keyboards }
sub keyboard2text { $keyboards{$_[0]} && $keyboards{$_[0]}[0] }
+sub keyboard2xkb { $keyboards{$_[0]} && $keyboards{$_[0]}[2] }
sub text2keyboard {
my ($t) = @_;
while (my ($k, $v) = each %keyboards) {