2024-03-09 23:44:43 +01:00
|
|
|
//
|
|
|
|
// Created by grimmauld on 09.03.24.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef SWAYMUX_NEXTOUTPUTKEYLISTENER_H
|
|
|
|
#define SWAYMUX_NEXTOUTPUTKEYLISTENER_H
|
|
|
|
|
|
|
|
|
|
|
|
class NextOutputKeyListener : public JumpOutputKeyListener {
|
|
|
|
public:
|
|
|
|
explicit NextOutputKeyListener(SwayTreeModel *swayTreeModel, QTreeView *treeView) : JumpOutputKeyListener(
|
|
|
|
swayTreeModel, treeView) {};
|
|
|
|
|
2024-03-13 21:43:57 +01:00
|
|
|
const std::string getDescription() override {
|
2024-03-09 23:44:43 +01:00
|
|
|
return "Jump focus to output below";
|
|
|
|
}
|
|
|
|
|
2024-03-13 21:43:57 +01:00
|
|
|
const std::string getKeyText() override {
|
2024-03-09 23:44:43 +01:00
|
|
|
return "Page Down";
|
|
|
|
}
|
|
|
|
|
|
|
|
[[nodiscard]] bool canAcceptKey(int key) const override {
|
|
|
|
return key == Qt::Key_PageDown;
|
|
|
|
}
|
|
|
|
|
|
|
|
int getOffset(const SwayTreeNode *selected) const override {
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif //SWAYMUX_NEXTOUTPUTKEYLISTENER_H
|