summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbfox <bfox>2000-12-04 23:20:54 +0000
committerbfox <bfox>2000-12-04 23:20:54 +0000
commit81da3011645cb145ec1968af77a993163bed0e72 (patch)
treef31f8b4ea0b4a75087dceabf5c87d611b0af49ac
parent8709bb87f5d86e8bfcabee01f143b08076e7a5cd (diff)
downloadanaconda-81da3011645cb145ec1968af77a993163bed0e72.tar.gz
anaconda-81da3011645cb145ec1968af77a993163bed0e72.tar.xz
anaconda-81da3011645cb145ec1968af77a993163bed0e72.zip
Fixed bug 18385.
-rw-r--r--kbd.py15
1 files changed, 13 insertions, 2 deletions
diff --git a/kbd.py b/kbd.py
index fe3020e4a..4eaab1ed8 100644
--- a/kbd.py
+++ b/kbd.py
@@ -11,9 +11,11 @@ class Keyboard (SimpleConfigFile):
("cf" , ('pc102', 'cf')),
("cz-lat2" , ('pc102', 'cs')),
("cz-lat2-prog" , ('pc102', 'cs')),
+
("de-latin1" , ('pc102', 'de')),
("de" , ('pc102', 'de')),
("de-latin1-nodeadkeys" , ('pc102', 'de')),
+
("dk" , ('pc102', 'dk')),
("dk-latin1" , ('pc102', 'dk')),
("es" , ('pc102', 'es')),
@@ -61,6 +63,7 @@ class Keyboard (SimpleConfigFile):
"sunt5-us-cz" : 'cs',
}
+
console2x = {}
for (console, (map, layout)) in console2xlist:
console2x[console] = (map, layout)
@@ -224,7 +227,10 @@ class Keyboard (SimpleConfigFile):
if self.type != "Serial":
self.info["KEYTABLE"] = keytable
- def setfromx (self, model, layout):
+ def setfromx (self, model, layout, variant):
+ print "Inside setfromx"
+ print "Values are", model, layout, variant
+
if self.type == "PC":
mapping = Keyboard.x2console
else:
@@ -240,7 +246,12 @@ class Keyboard (SimpleConfigFile):
mod = model
lay = key;
if model == mod and layout == lay:
- self.info["KEYTABLE"] = mapping[key]
+ #--Check to see if keyboard is German and has deadkeys disabled
+ print "Inside compare", mod, lay, variant
+ if lay == "de" and variant == "nodeadkeys":
+ self.info["KEYTABLE"] = "de-latin1-nodeadkeys"
+ else:
+ self.info["KEYTABLE"] = mapping[key]
return
if layout == lay:
fuzzy = key