summaryrefslogtreecommitdiffstats
path: root/perl-install/keyboard.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-12-29 12:19:34 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-12-29 12:19:34 +0000
commit3202cc94adcd9df067faf39cb27635409e56bc11 (patch)
tree1f1ead1d0441501f9ffdc0bddd34af45e12e1fe4 /perl-install/keyboard.pm
parentbce59e8e1b55eb5ac91f30937a93aa290af40026 (diff)
downloaddrakx-3202cc94adcd9df067faf39cb27635409e56bc11.tar
drakx-3202cc94adcd9df067faf39cb27635409e56bc11.tar.gz
drakx-3202cc94adcd9df067faf39cb27635409e56bc11.tar.bz2
drakx-3202cc94adcd9df067faf39cb27635409e56bc11.tar.xz
drakx-3202cc94adcd9df067faf39cb27635409e56bc11.zip
move any::keyboard_group_toggle_choose() to keyboard::group_toggle_choose()
Diffstat (limited to 'perl-install/keyboard.pm')
-rw-r--r--perl-install/keyboard.pm17
1 files changed, 17 insertions, 0 deletions
diff --git a/perl-install/keyboard.pm b/perl-install/keyboard.pm
index 74dc03cce..901049f00 100644
--- a/perl-install/keyboard.pm
+++ b/perl-install/keyboard.pm
@@ -301,6 +301,23 @@ sub grp_toggles {
\%grp_toggles;
}
+sub group_toggle_choose {
+ my ($in, $keyboard) = @_;
+
+ if (my $grp_toggles = keyboard::grp_toggles($keyboard)) {
+ my $GRP_TOGGLE = $keyboard->{GRP_TOGGLE} || 'caps_toggle';
+ $GRP_TOGGLE = $in->ask_from_listf('', N("Here you can choose the key or key combination that will
+allow switching between the different keyboard layouts
+(eg: latin and non latin)"), sub { $grp_toggles->{$_[0]} }, [ sort keys %$grp_toggles ], $GRP_TOGGLE) or return;
+
+ log::l("GRP_TOGGLE: $GRP_TOGGLE");
+ $keyboard->{GRP_TOGGLE} = $GRP_TOGGLE;
+ } else {
+ $keyboard->{GRP_TOGGLE} = '';
+ }
+ 1;
+}
+
sub loadkeys_files {
my ($err) = @_;
my $archkbd = arch() =~ /^sparc/ ? "sun" : arch() =~ /i.86/ ? "i386" : arch() =~ /ppc/ ? "mac" : arch();