summaryrefslogtreecommitdiffstats
path: root/plugin/cursornavigation.cpp
diff options
context:
space:
mode:
authorAntti Hölttä <AHoelttae@luxoft.com>2018-12-03 13:58:37 +0100
committerAntti Hölttä <AHoelttae@luxoft.com>2019-03-18 16:33:53 +0100
commit7a99a87e91f316e312bef8260534748d8b0df12c (patch)
tree47fc0a4167007c7b57d5b7a9276bedb8e55c5e07 /plugin/cursornavigation.cpp
parenta9445c3b9c8f51a229b62c25df1aeebe5c85c88d (diff)
When following focus, set cursor only on items that accept it
Diffstat (limited to 'plugin/cursornavigation.cpp')
-rw-r--r--plugin/cursornavigation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/cursornavigation.cpp b/plugin/cursornavigation.cpp
index 718a24b..7cdd80a 100644
--- a/plugin/cursornavigation.cpp
+++ b/plugin/cursornavigation.cpp
@@ -147,7 +147,7 @@ void CursorNavigation::setCursorOnItem(CursorNavigationAttached *item)
m_currentItem->setHasCursor(false);
//m_currentItem->item()->setFocus(false);
}
- if (item) {
+ if (item && item->acceptsCursor()) {
item->setHasCursor(true);
m_currentItem = item;
m_currentItem->item()->forceActiveFocus();