// // Created by grimmauld on 07.03.24. // #ifndef SWAYMUX_KEYHANDLER_H #define SWAYMUX_KEYHANDLER_H #include #include "AbstractKeyListener.h" class KeyHandler : public QObject { Q_OBJECT public: void addListener(AbstractKeyListener *listener) { listeners.push_back(listener); } protected: bool eventFilter(QObject *obj, QEvent *event) override; std::vector listeners; }; #endif //SWAYMUX_KEYHANDLER_H