[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH] 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.
---
 iw/kbd_gui.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/iw/kbd_gui.py b/iw/kbd_gui.py
index 322d04c..aa7b858 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)
-- 
1.6.5.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]