summaryrefslogtreecommitdiffstats
path: root/perl-install/keyboard.pm
diff options
context:
space:
mode:
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 5ede5c53d..b2db204fd 100644
--- a/perl-install/keyboard.pm
+++ b/perl-install/keyboard.pm
@@ -390,6 +390,23 @@ sub load {
#- log::l("loaded $count keymap tables");
}
+sub keyboard2full_xkb {
+ my ($keyboard) = @_;
+
+ my $XkbLayout = keyboard2xkb($keyboard);
+
+ my $XkbModel =
+ arch() =~ /sparc/ ? 'sun' :
+ $XkbLayout eq 'jp' ? 'jp106' :
+ $XkbLayout eq 'br' ? 'abnt2' : 'pc105';
+
+ $XkbLayout ? {
+ XkbLayout => $XkbLayout,
+ XkbModel => $XkbModel,
+ XkbOptions => $keyboard->{GRP_TOGGLE} ? "grp:$keyboard->{GRP_TOGGLE}" : undef,
+ } : { XkbDisable => undef };
+}
+
sub xmodmap_file {
my ($keyboard) = @_;
my $KEYBOARD = $keyboard->{KEYBOARD};