Don't accept space and enter key events in empty WindowHeaps
This fixes being able to select an empty desktop. CCBUG: 457910
This commit is contained in:
parent
e924b1cb23
commit
105af544c9
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue