diff options
| author | Derek Christ <[email protected]> | 2020-10-15 23:11:17 +0200 |
|---|---|---|
| committer | Elvis Angelaccio <[email protected]> | 2020-11-23 22:07:31 +0000 |
| commit | 9e4642d435085f27134ed6c8431734dcacf65834 (patch) | |
| tree | e3b1cd42199c70935a405dc614e6fc8833aac454 /src/dolphincontextmenu.h | |
| parent | c3b238bbe924f5c58496407ceb9f90c88c0738fa (diff) | |
Fix delete action switching via 'Shift' when sub-context-menu is open
Switching the 'Move to Trash' action to 'Delete' using the shift key
does not work when the mouse hovers a submenu. This fix resolves the
issue by using an event filter instead of the key event functions.
BUG: 425997
Diffstat (limited to 'src/dolphincontextmenu.h')
| -rw-r--r-- | src/dolphincontextmenu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dolphincontextmenu.h b/src/dolphincontextmenu.h index 523c0555a..7f0b6988a 100644 --- a/src/dolphincontextmenu.h +++ b/src/dolphincontextmenu.h @@ -74,8 +74,8 @@ public: Command open(); protected: - void keyPressEvent(QKeyEvent *ev) override; - void keyReleaseEvent(QKeyEvent *ev) override; + void childEvent(QChildEvent* event) override; + bool eventFilter(QObject* dest, QEvent* event) override; private: void openTrashContextMenu(); |
