diff options
| author | Eugene Popov <[email protected]> | 2023-04-25 13:05:39 +0000 |
|---|---|---|
| committer | Felix Ernst <[email protected]> | 2023-04-25 13:05:39 +0000 |
| commit | 7b6a67e520c04f56b4b05fa26b252177398df6df (patch) | |
| tree | 2932c1185b4fbd123327ff8d42afc0671bbce1ed /src/views/dolphinview.cpp | |
| parent | f186f694d4613c335184feed89e50f345c72f47c (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/views/dolphinview.cpp')
| -rw-r--r-- | src/views/dolphinview.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index b33353e3a..186de4fcc 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -1828,6 +1828,11 @@ void DolphinView::hideToolTip(const ToolTipManager::HideBehavior behavior) } } +bool DolphinView::handleSpaceAsNormalKey() const +{ + return !m_container->hasFocus() || m_container->controller()->isSearchAsYouTypeActive(); +} + void DolphinView::slotTwoClicksRenamingTimerTimeout() { const KItemListSelectionManager *selectionManager = m_container->controller()->selectionManager(); |
