summaryrefslogtreecommitdiffstats
path: root/perl-install/any.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r--perl-install/any.pm16
1 files changed, 16 insertions, 0 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index 4085add9c..30816b056 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -13,6 +13,7 @@ use fsedit;
use fs;
use lang;
use run_program;
+use keyboard;
use devices;
use modules;
use log;
@@ -1181,4 +1182,19 @@ sub config_mtools {
} $file;
}
+sub keyboard_group_toggle_choose {
+ my ($in, $keyboard) = @_;
+
+ my $grp_toggles = keyboard::grp_toggles($keyboard) or return 1;
+
+ my $GRP_TOGGLE =
+ $in->ask_from_listf('', _("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 ], 'caps_toggle') or return;
+
+ log::l("GRP_TOGGLE: $GRP_TOGGLE");
+ $keyboard->{GRP_TOGGLE} = $GRP_TOGGLE;
+ 1;
+}
+
1;