Blame SOURCES/kde-workspace-kscreenlocker-greeter-unlock-just-once.patch

a59559
diff --git a/ksmserver/screenlocker/greeter/greeterapp.cpp b/ksmserver/screenlocker/greeter/greeterapp.cpp
a59559
index 8ac0de4..64f7b2c 100644
a59559
--- a/ksmserver/screenlocker/greeter/greeterapp.cpp
a59559
+++ b/ksmserver/screenlocker/greeter/greeterapp.cpp
a59559
@@ -418,8 +418,11 @@ bool UnlockApp::eventFilter(QObject *obj, QEvent *event)
a59559
             }
a59559
         }
a59559
         if (!saverVisible) {
a59559
-            shareEvent(event, qobject_cast<QDeclarativeView*>(obj));
a59559
-            return false; // we don't care
a59559
+            QKeyEvent *ke = static_cast<QKeyEvent *>(event);
a59559
+            if (ke->key() != Qt::Key_Enter && ke->key() != Qt::Key_Return) {
a59559
+                shareEvent(event, qobject_cast<QDeclarativeView*>(obj));
a59559
+            }
a59559
+            return false;
a59559
         }
a59559
         ignoreNextEscape = bool(static_cast<QKeyEvent *>(event)->key() == Qt::Key_Escape);
a59559
         capsLocked();