Commit 893d58eb authored by David Edmundson's avatar David Edmundson Committed by Vlad Zahorodnii
Browse files

Don't accept space and enter key events in empty WindowHeaps

This fixes being able to select an empty desktop.

CCBUG: 457910


(cherry picked from commit 105af544)
parent c45d26a3
Pipeline #237347 passed with stage
in 19 minutes and 14 seconds
......@@ -339,7 +339,7 @@ FocusScope {
break;
case Qt.Key_Return:
case Qt.Key_Space:
handled = true;
handled = false;
let selectedItem = null;
if (selectedIndex !== -1) {
selectedItem = windowsRepeater.itemAt(selectedIndex);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment