effects/desktopgrid: re-add shortcuts to add and remove desktops
This got lost in the QML port. BUG: 451848
This commit is contained in:
parent
529c3c29d3
commit
701fc52a4a
1 changed files with 11 additions and 1 deletions
|
@ -33,7 +33,15 @@ Rectangle {
|
|||
container.organized = false;
|
||||
}
|
||||
|
||||
Keys.onEscapePressed: effect.deactivate(effect.animationDuration);
|
||||
Keys.onPressed: {
|
||||
if (event.key == Qt.Key_Escape) {
|
||||
effect.deactivate(effect.animationDuration);
|
||||
} else if (event.key == Qt.Key_Plus || event.key == Qt.Key_Equal) {
|
||||
addButton.clicked();
|
||||
} else if (event.key == Qt.Key_Minus) {
|
||||
removeButton.clicked();
|
||||
}
|
||||
}
|
||||
Keys.priority: Keys.AfterItem
|
||||
|
||||
KWinComponents.VirtualDesktopModel {
|
||||
|
@ -167,10 +175,12 @@ Rectangle {
|
|||
}
|
||||
visible: container.effect.showAddRemove
|
||||
PC3.Button {
|
||||
id: addButton
|
||||
icon.name: "list-add"
|
||||
onClicked: container.effect.addDesktop()
|
||||
}
|
||||
PC3.Button {
|
||||
id: removeButton
|
||||
icon.name: "list-remove"
|
||||
onClicked: container.effect.removeDesktop()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue