diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2000-05-07 15:41:55 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2000-05-07 15:41:55 +0000 |
commit | 6e0714d453adf6cb59f3a8083d3561d5f274be16 (patch) | |
tree | f1b76708279145c1eb63b7d23f5c7d08648858a5 /perl-install/keyboard.pm | |
parent | d91336f90687a1f2386f4941b1589c54af085983 (diff) | |
download | drakx-backup-do-not-use-6e0714d453adf6cb59f3a8083d3561d5f274be16.tar drakx-backup-do-not-use-6e0714d453adf6cb59f3a8083d3561d5f274be16.tar.gz drakx-backup-do-not-use-6e0714d453adf6cb59f3a8083d3561d5f274be16.tar.bz2 drakx-backup-do-not-use-6e0714d453adf6cb59f3a8083d3561d5f274be16.tar.xz drakx-backup-do-not-use-6e0714d453adf6cb59f3a8083d3561d5f274be16.zip |
no_comment
Diffstat (limited to 'perl-install/keyboard.pm')
-rw-r--r-- | perl-install/keyboard.pm | 4 |
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"; } |