summaryrefslogtreecommitdiffstats
path: root/perl-install/install_steps_interactive.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-07-30 19:42:33 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-07-30 19:42:33 +0000
commitd498565fa66347fe9f65d28864ee002b4c8ef5f2 (patch)
treef8ad99a1cda11d228735b668ad3b61beb8e2633a /perl-install/install_steps_interactive.pm
parent755319c9db0feabeeba27d0e007388652e423394 (diff)
downloaddrakx-backup-do-not-use-d498565fa66347fe9f65d28864ee002b4c8ef5f2.tar
drakx-backup-do-not-use-d498565fa66347fe9f65d28864ee002b4c8ef5f2.tar.gz
drakx-backup-do-not-use-d498565fa66347fe9f65d28864ee002b4c8ef5f2.tar.bz2
drakx-backup-do-not-use-d498565fa66347fe9f65d28864ee002b4c8ef5f2.tar.xz
drakx-backup-do-not-use-d498565fa66347fe9f65d28864ee002b4c8ef5f2.zip
use usb keyboard bCountryCode to choose the right keyboard
Diffstat (limited to 'perl-install/install_steps_interactive.pm')
-rw-r--r--perl-install/install_steps_interactive.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/perl-install/install_steps_interactive.pm b/perl-install/install_steps_interactive.pm
index ffbc9ad82..4ac7778e7 100644
--- a/perl-install/install_steps_interactive.pm
+++ b/perl-install/install_steps_interactive.pm
@@ -197,14 +197,14 @@ For any question on this document, please contact MandrakeSoft S.A.
sub selectKeyboard {
my ($o, $clicked) = @_;
+ my $from_usb = keyboard::from_usb();
my $l = keyboard::lang2keyboards(lang::langs($o->{langs}));
- #- good guess, don't ask
+ #- good guess, don't ask ($o->{keyboard} already set)
return install_steps::selectKeyboard($o)
- if !$::expert && !$clicked && $l->[0][1] >= 90 && listlength(lang::langs($o->{langs})) == 1;
+ if !$::expert && !$clicked && ($from_usb || $l->[0][1] >= 90) && listlength(lang::langs($o->{langs})) == 1;
- my @best = map { $_->[0] } @$l;
- push @best, 'us_intl' if !member('us_intl', @best);
+ my @best = uniq(if_($from_usb, $from_usb), (map { $_->[0] } @$l), 'us_intl');
my $format = sub { translate(keyboard::keyboard2text($_[0])) };
my $other;