diff options
author | bfox <bfox> | 2000-12-05 22:00:18 +0000 |
---|---|---|
committer | bfox <bfox> | 2000-12-05 22:00:18 +0000 |
commit | a784cbd674b2bcc9c167c7673118706bae985bbe (patch) | |
tree | eef0d0b6030ffa0f2e5a199cf181b85bbee83b6b /kbd.py | |
parent | 4f3589f97172d87c0e4d45c57f594d3082b4b58d (diff) | |
download | anaconda-a784cbd674b2bcc9c167c7673118706bae985bbe.tar.gz anaconda-a784cbd674b2bcc9c167c7673118706bae985bbe.tar.xz anaconda-a784cbd674b2bcc9c167c7673118706bae985bbe.zip |
Added support for Dvorak keyboards to the installer. Needs to be tested.
Diffstat (limited to 'kbd.py')
-rw-r--r-- | kbd.py | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -1,6 +1,7 @@ import kudzu import string from simpleconfig import SimpleConfigFile +from log import log class Keyboard (SimpleConfigFile): # the *first* item in each of these wins conflicts @@ -15,7 +16,7 @@ class Keyboard (SimpleConfigFile): ("de-latin1" , ('pc102', 'de')), ("de" , ('pc102', 'de')), ("de-latin1-nodeadkeys" , ('pc102', 'de')), - + ("dvorak" , ('pc105', 'dvorak')), ("dk" , ('pc102', 'dk')), ("dk-latin1" , ('pc102', 'dk')), ("es" , ('pc102', 'es')), @@ -225,9 +226,11 @@ class Keyboard (SimpleConfigFile): def set (self, keytable): if self.type != "Serial": + log ("Inside kbd.py %s", keytable) self.info["KEYTABLE"] = keytable def setfromx (self, model, layout, variant): + print "Inside setfromx -------", model, layout, variant if self.type == "PC": mapping = Keyboard.x2console else: @@ -239,11 +242,17 @@ class Keyboard (SimpleConfigFile): for key in keys: if type(key) == type(()): (mod, lay) = key + print "Inside if", mod, lay + else: mod = model lay = key; + print "Inside else", mod, lay if model == mod and layout == lay: #--Check to see if keyboard is German and has deadkeys disabled + + print mod, lay + if lay == "de" and variant == "nodeadkeys": self.info["KEYTABLE"] = "de-latin1-nodeadkeys" else: |