Keyboard integration for Streamlink quality confirmation (#3169)
Co-authored-by: zneix <zneix@zneix.eu>
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
#include "common/FlagsEnum.hpp"
|
||||
#include "widgets/BaseWindow.hpp"
|
||||
|
||||
class QDialogButtonBox;
|
||||
|
||||
namespace chatterino {
|
||||
|
||||
class BasePopup : public BaseWindow
|
||||
@@ -13,6 +15,12 @@ public:
|
||||
|
||||
protected:
|
||||
void keyPressEvent(QKeyEvent *e) override;
|
||||
|
||||
// handleEscape is a helper function for clicking the "Reject" role button of a button box when the Escape button is pressed
|
||||
bool handleEscape(QKeyEvent *e, QDialogButtonBox *buttonBox);
|
||||
|
||||
// handleEnter is a helper function for clicking the "Accept" role button of a button box when Return or Enter is pressed
|
||||
bool handleEnter(QKeyEvent *e, QDialogButtonBox *buttonBox);
|
||||
};
|
||||
|
||||
} // namespace chatterino
|
||||
|
||||
Reference in New Issue
Block a user