[PATCH 3/4] Hitting ENTER in the LUKS passwd entry should click the Unlock button

Vratislav Podzimek vpodzime at redhat.com
Tue Apr 15 16:42:41 UTC 2014


Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
 pyanaconda/ui/gui/spokes/custom.glade | 1 +
 pyanaconda/ui/gui/spokes/custom.py    | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/pyanaconda/ui/gui/spokes/custom.glade b/pyanaconda/ui/gui/spokes/custom.glade
index c414669..a28a7dd 100644
--- a/pyanaconda/ui/gui/spokes/custom.glade
+++ b/pyanaconda/ui/gui/spokes/custom.glade
@@ -739,6 +739,7 @@ until you click on the main menu's 'Begin Installation' button.</property>
                                     <property name="visibility">False</property>
                                     <property name="invisible_char">●</property>
                                     <accelerator key="p" signal="grab-focus" modifiers="GDK_MOD1_MASK"/>
+                                    <signal name="activate" handler="on_unlock_clicked" swapped="no"/>
                                   </object>
                                   <packing>
                                     <property name="expand">False</property>
diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index 4656489..a206d1d 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -2471,7 +2471,7 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
         self._save_right_side(self._current_selector)
         self._applyButton.set_sensitive(False)
 
-    def on_unlock_clicked(self, button):
+    def on_unlock_clicked(self, *args):
         """ try to open the luks device, populate, then call _do_refresh. """
         self.clear_errors()
         device = self._current_selector.device
-- 
1.9.0



More information about the anaconda-patches mailing list