┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/kitemlistcontroller.h
diff options
context:
space:
mode:
authorEugene Popov <[email protected]>2023-04-25 13:05:39 +0000
committerFelix Ernst <[email protected]>2023-04-25 13:05:39 +0000
commit7b6a67e520c04f56b4b05fa26b252177398df6df (patch)
tree2932c1185b4fbd123327ff8d42afc0671bbce1ed /src/kitemviews/kitemlistcontroller.h
parentf186f694d4613c335184feed89e50f345c72f47c (diff)
Fix activating the Selection Mode with a keyboard shortcut
If a spacebar is used as a keyboard shortcut to activate the Selection Mode, then allow this shortcut to be triggered only if the view has a keyboard focus. BUG: 465489
Diffstat (limited to 'src/kitemviews/kitemlistcontroller.h')
-rw-r--r--src/kitemviews/kitemlistcontroller.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/kitemviews/kitemlistcontroller.h b/src/kitemviews/kitemlistcontroller.h
index d75a8a22d..0969ed21a 100644
--- a/src/kitemviews/kitemlistcontroller.h
+++ b/src/kitemviews/kitemlistcontroller.h
@@ -123,6 +123,11 @@ public:
void setSelectionModeEnabled(bool enabled);
bool selectionMode() const;
+ /**
+ * @return \c true if search as you type is active, or \c false otherwise.
+ */
+ bool isSearchAsYouTypeActive() const;
+
bool processEvent(QEvent *event, const QTransform &transform);
Q_SIGNALS: