summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-11-24 14:37:38 -0500
committerChris Lumens <clumens@redhat.com>2009-11-24 14:37:38 -0500
commit54b4ebc4b3a662eee9b585f215704283cbb7100a (patch)
treec1a7080dda0b3fa07f8eaded7544cbfd1e5bef50
parent514cec57b099fdfb5a7fa82cd451355a6fe8ab1c (diff)
downloadanaconda-54b4ebc4b3a662eee9b585f215704283cbb7100a.tar.gz
anaconda-54b4ebc4b3a662eee9b585f215704283cbb7100a.tar.xz
anaconda-54b4ebc4b3a662eee9b585f215704283cbb7100a.zip
Set the default keyboard based on language before showing the UI (#532843).
This makes sure the keyboard both defaults to the right setting and is correctly set in /etc/sysconfig/keyboard post-install.
-rw-r--r--iw/kbd_gui.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/iw/kbd_gui.py b/iw/kbd_gui.py
index 322d04c4a..aa7b858e6 100644
--- a/iw/kbd_gui.py
+++ b/iw/kbd_gui.py
@@ -34,5 +34,6 @@ class KeyboardWindow(InstallWindow, installKeyboardWindow):
installKeyboardWindow.getNext(self)
def getScreen(self, anaconda):
- anaconda.id.keyboard.beenset = 1
- return installKeyboardWindow.getScreen(self, anaconda.id.instLanguage.getDefaultKeyboard(anaconda.rootPath), anaconda.id.keyboard)
+ default = anaconda.id.instLanguage.getDefaultKeyboard(anaconda.rootPath)
+ anaconda.id.keyboard.set(default)
+ return installKeyboardWindow.getScreen(self, default, anaconda.id.keyboard)