keysequenceeditor: override backspace and esc behavior

Fixes #1455
This commit is contained in:
itsmattkc
2021-03-21 23:26:33 +11:00
parent 5b04d84bfb
commit 62332eb216
2 changed files with 32 additions and 1 deletions
@@ -94,6 +94,12 @@ public:
* because a default shortcut does not need to be saved to a file.
*/
QString export_shortcut();
protected:
virtual void keyPressEvent(QKeyEvent *e) override;
virtual void keyReleaseEvent(QKeyEvent *e) override;
private:
/**
* @brief Internal reference to the linked QAction