* If a non-default keymap is selected, put it on the kernel command line

as kbd-chooser/method=%s.
master
Colin Watson 19 years ago
parent 08a717ecab
commit 535a84599d

@ -164,7 +164,7 @@
key
config.keymap { mapkey } if
config.keymap .km.map get { mapkey } if
dup 0xffffff and dup { exch } if pop
@ -378,6 +378,11 @@
} if
} if
config.keymap .km.name get dup "us" ne {
"kbd-chooser/method=%s " bc.cmd dup length add sprintf
} {
pop
} ifelse
} if
xmenu.profile {

2
debian/changelog vendored

@ -8,6 +8,8 @@ gfxboot-theme-ubuntu (0.1.8) UNRELEASED; urgency=low
* Allow mapping multiple locales to a single keymap.
* Update keymaps and locale-to-keymap mappings from console-keymaps-at
2002.12.04dbs-50ubuntu2.
* If a non-default keymap is selected, put it on the kernel command line
as kbd-chooser/method=%s.
-- Colin Watson <cjwatson@ubuntu.com> Fri, 20 Jan 2006 12:06:34 +0000

@ -38,7 +38,7 @@
keymap.inited {
/keymap.tmp.cnt 0 def
keymaps {
.km.map get config.keymap eq {
config.keymap eq {
xmenu.keymap .xm_current keymap.tmp.cnt put exit
} if
/keymap.tmp.cnt inc

@ -1340,3 +1340,5 @@
[ "ua" keymap.ua "Ukrainian" [ "uk" ] ]
] def
# for safety
/config.keymap keymaps 0 get def

@ -43,7 +43,7 @@
keymaps {
dup .km.locales get {
config.keymap.locale eq {
dup .km.map get /config.keymap exch def /setkeymap.found true def exit
dup /config.keymap exch def /setkeymap.found true def exit
} if
} forall
pop

@ -133,3 +133,8 @@ for my $keymap (sort { $keymaps{$a}[1] cmp $keymaps{$b}[1] } keys %keymaps) {
print qq{ [ "$keymap" $keymapfunc{$keymap} "$keymaps{$keymap}[1]" [ $localelist ] ]\n};
}
print "] def\n\n";
print <<EOF;
# for safety
/config.keymap keymaps 0 get def
EOF

@ -337,8 +337,8 @@ def
% bios is too smart...
key.code 0x78 ge key.code 0x83 le and { /key.code key.code 0x76 sub def } if
} if
0 1 config.keymap length 1 sub {
config.keymap exch get
0 1 config.keymap .km.map get length 1 sub {
config.keymap .km.map get exch get
dup 0 get key.code eq {
1
keystat statusShift and { pop 2 } if

Loading…
Cancel
Save