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

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