Bug 422203 - PDF viewer hijacks spacebar, even when not in focus
Summary: PDF viewer hijacks spacebar, even when not in focus
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: UI: general (show other bugs)
Version: 5.5.1
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-29 00:59 UTC by Alex
Modified: 2021-10-07 19:50 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.7.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex 2020-05-29 00:59:30 UTC
STEPS TO REPRODUCE
1. In split view, have a PDF open on one side, and a text editor open on the other.
2. While the text editor has focus, press the spacebar.

OBSERVED RESULT
The un-focused PDF scrolls down, and no space character is typed in the editor.

EXPECTED RESULT
A space character is typed, and the PDF is not scrolled down.

SOFTWARE/OS VERSIONS
Linux: Fedora 32
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.13.2
Comment 1 Igor Kushnir 2020-05-30 10:07:55 UTC
I have been hit by this bug too. It is also reproducible with an almost up-to-date KDevelop git master version.
Comment 2 Friedrich W. H. Kossebau 2020-05-30 10:11:21 UTC

*** This bug has been marked as a duplicate of bug 407869 ***
Comment 3 Christoph Roick 2021-05-26 20:56:43 UTC
This bug is not actually a duplicate of bug 407869, since here there is some interaction between "regular" KParts views which can be fixed within KDevelop. The other bug is caused by something else.
Comment 4 Christoph Roick 2021-10-07 19:50:41 UTC
Git commit 4fadf2c99c8a8826f0ca82e25e0718d8323c7ad8 by Christoph Roick.
Committed on 07/10/2021 at 19:43.
Pushed by croick into branch 'master'.

Restrict KParts keyboard shortcuts to their own view

Fix keyboard shortcuts being applied across multiple split views.
Without limiting the shortcuts owned by the respective KPart (such
as an Okular view), actions are called even if the Part is not
currently active (like scrolling the Okular document when pressing
space in another view).
FIXED-IN: 5.7.0

M  +14   -6    kdevplatform/shell/partcontroller.cpp

https://invent.kde.org/kdevelop/kdevelop/commit/4fadf2c99c8a8826f0ca82e25e0718d8323c7ad8