diff --git a/windowswitchers/big_icons/contents/ui/main.qml b/windowswitchers/big_icons/contents/ui/main.qml --- a/windowswitchers/big_icons/contents/ui/main.qml +++ b/windowswitchers/big_icons/contents/ui/main.qml @@ -110,6 +110,8 @@ icons.decrementCurrentIndex(); } else if (event.key == Qt.Key_Right) { icons.incrementCurrentIndex(); + } else if (event.key == Qt.Key_F4 || event.key == Qt.Key_W) { + model.close(currentIndex) } } } diff --git a/windowswitchers/compact/contents/ui/main.qml b/windowswitchers/compact/contents/ui/main.qml --- a/windowswitchers/compact/contents/ui/main.qml +++ b/windowswitchers/compact/contents/ui/main.qml @@ -181,6 +181,8 @@ compactListView.decrementCurrentIndex(); } else if (event.key == Qt.Key_Down) { compactListView.incrementCurrentIndex(); + } else if (event.key == Qt.Key_F4 || event.key == Qt.Key_W) { + model.close(currentIndex) } } } diff --git a/windowswitchers/informative/contents/ui/main.qml b/windowswitchers/informative/contents/ui/main.qml --- a/windowswitchers/informative/contents/ui/main.qml +++ b/windowswitchers/informative/contents/ui/main.qml @@ -196,6 +196,8 @@ listView.decrementCurrentIndex(); } else if (event.key == Qt.Key_Down) { listView.incrementCurrentIndex(); + } else if (event.key == Qt.Key_F4 || event.key == Qt.Key_W) { + model.close(currentIndex) } } } diff --git a/windowswitchers/present_windows/contents/ui/main.qml b/windowswitchers/present_windows/contents/ui/main.qml --- a/windowswitchers/present_windows/contents/ui/main.qml +++ b/windowswitchers/present_windows/contents/ui/main.qml @@ -150,6 +150,8 @@ thumbnailListView.moveCurrentIndexUp(); } else if (event.key == Qt.Key_Down) { thumbnailListView.moveCurrentIndexDown(); + } else if (event.key == Qt.Key_F4 || event.key == Qt.Key_W) { + model.close(currentIndex) } } } diff --git a/windowswitchers/small_icons/contents/ui/main.qml b/windowswitchers/small_icons/contents/ui/main.qml --- a/windowswitchers/small_icons/contents/ui/main.qml +++ b/windowswitchers/small_icons/contents/ui/main.qml @@ -91,6 +91,8 @@ icons.decrementCurrentIndex(); } else if (event.key == Qt.Key_Right) { icons.incrementCurrentIndex(); + } else if (event.key == Qt.Key_F4 || event.key == Qt.Key_W) { + model.close(currentIndex) } } } diff --git a/windowswitchers/text/contents/ui/main.qml b/windowswitchers/text/contents/ui/main.qml --- a/windowswitchers/text/contents/ui/main.qml +++ b/windowswitchers/text/contents/ui/main.qml @@ -151,6 +151,8 @@ textListView.decrementCurrentIndex(); } else if (event.key == Qt.Key_Down) { textListView.incrementCurrentIndex(); + } else if (event.key == Qt.Key_F4 || event.key == Qt.Key_W) { + model.close(currentIndex) } } } diff --git a/windowswitchers/thumbnails/contents/ui/main.qml b/windowswitchers/thumbnails/contents/ui/main.qml --- a/windowswitchers/thumbnails/contents/ui/main.qml +++ b/windowswitchers/thumbnails/contents/ui/main.qml @@ -177,6 +177,8 @@ thumbnailListView.decrementCurrentIndex(); } else if (event.key == Qt.Key_Right) { thumbnailListView.incrementCurrentIndex(); + } else if (event.key == Qt.Key_F4 || event.key == Qt.Key_W) { + model.close(currentIndex) } } }