diff options
Diffstat (limited to 'iw/keyboard.py')
-rw-r--r-- | iw/keyboard.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/iw/keyboard.py b/iw/keyboard.py index 3acce3cb2..e9d6f0a00 100644 --- a/iw/keyboard.py +++ b/iw/keyboard.py @@ -4,6 +4,8 @@ import xkb import string import keyboard from translate import _ +from kbd import Keyboard +import iutil class KeyboardWindow (InstallWindow): @@ -40,6 +42,13 @@ class KeyboardWindow (InstallWindow): self.kb.setRule (self.model, self.layout, self.variant, "complete") def getScreen (self): + if not self.hasrun: + default = iutil.defaultKeyboard() + if Keyboard.console2x.has_key (default): + self.model = Keyboard.console2x[default][0] + self.layout = Keyboard.console2x[default][1] + self.kb.setRule (self.model, self.layout, self.variant, "complete") + box = GtkVBox (FALSE, 5) im = self.ics.readPixmap ("gnome-keyboard.png") if im: |