summaryrefslogtreecommitdiffstats
path: root/perl-install/keyboard.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-05-07 15:41:55 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-05-07 15:41:55 +0000
commit6e0714d453adf6cb59f3a8083d3561d5f274be16 (patch)
treef1b76708279145c1eb63b7d23f5c7d08648858a5 /perl-install/keyboard.pm
parentd91336f90687a1f2386f4941b1589c54af085983 (diff)
downloaddrakx-6e0714d453adf6cb59f3a8083d3561d5f274be16.tar
drakx-6e0714d453adf6cb59f3a8083d3561d5f274be16.tar.gz
drakx-6e0714d453adf6cb59f3a8083d3561d5f274be16.tar.bz2
drakx-6e0714d453adf6cb59f3a8083d3561d5f274be16.tar.xz
drakx-6e0714d453adf6cb59f3a8083d3561d5f274be16.zip
no_comment
Diffstat (limited to 'perl-install/keyboard.pm')
-rw-r--r--perl-install/keyboard.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/keyboard.pm b/perl-install/keyboard.pm
index b312fc85a..969b24fbf 100644
--- a/perl-install/keyboard.pm
+++ b/perl-install/keyboard.pm
@@ -166,8 +166,8 @@ sub keyboard2kmap { $keyboards{$_[0]} && $keyboards{$_[0]}[1] }
sub keyboard2xkb { $keyboards{$_[0]} && $keyboards{$_[0]}[2] }
sub text2keyboard {
my ($t) = @_;
- while (my ($k, $v) = each %keyboards) {
- lc($v->[0]) eq lc($t) and return $k;
+ foreach (keys %keyboards) {
+ lc($keyboards{$_}[0]) eq lc($t) and return $_;
}
die "unknown keyboard $t";
}