┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinurlnavigator.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/dolphinurlnavigator.h')
-rw-r--r--src/dolphinurlnavigator.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/dolphinurlnavigator.h b/src/dolphinurlnavigator.h
index 1387b567f..d6da51b47 100644
--- a/src/dolphinurlnavigator.h
+++ b/src/dolphinurlnavigator.h
@@ -92,6 +92,18 @@ public Q_SLOTS:
* preferred in the Dolphin settings.
*/
void slotReturnPressed();
+
+Q_SIGNALS:
+ /**
+ * Escape was pressed, and the focus should return to the view.
+ */
+ void requestToLoseFocus();
+
+protected:
+ /**
+ * Return focus back to the view when pressing Escape and this would have no other effect (e.g. deselecting or changing edit mode).
+ */
+ void keyPressEvent(QKeyEvent *keyEvent) override;
};
#endif // DOLPHINURLNAVIGATOR_H