Bug 464121 - Key “f“ is ignored in terminal while an image is the selected tab in the document area.
Summary: Key “f“ is ignored in terminal while an image is the selected tab in the docu...
Status: CONFIRMED
Alias: None
Product: kdevelop
Classification: Applications
Component: UI: general (other bugs)
Version First Reported In: 5.7.211203
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-10 21:59 UTC by Lukas Sommer
Modified: 2023-01-11 13:57 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Sommer 2023-01-10 21:59:44 UTC
SUMMARY
Key “f“ is ignored in terminal while an image is the selected tab in the document area.

STEPS TO REPRODUCE
1. Open a source code file.
2. Open the terminal.
3. Begin to type a command in the console with your keyboard. When typing the letter “f”, this letter appears in the console.
4. Open a PNG image in a new tab.
5. Click again into the terminal.
6. Try to type “f”. There will be no reaction. 

OBSERVED RESULT
While a tab with a PNG image is the currently visible tab, the letter “f” cannot be written in the terminal.

EXPECTED RESULT
The letter “f” cannot be written in the terminal, independently if a PNG image is in the current tab or not.


SOFTWARE/OS VERSIONS
Operating System: Kubuntu 22.04
KDE Plasma Version: 5.24.7
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3
Kernel Version: 5.15.0-57-generic (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-7700HQ CPU @ 2.80GHz
Memory: 15.5 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 630

ADDITIONAL INFORMATION
Sometime, but not always, when typing “f”, a gray rectangle appears in the bottom right corner of the tab with the PNG image. While it is not possible to type “f” with the keyboard, it _is_ possible to copy the letter “f” from another application and to paste it into the terminal. So maybe a problem with some keyboard shortcut?
Comment 1 Igor Kushnir 2023-01-11 13:57:14 UTC
Looks similar to Bug 422203. The fix for that bug is present in KDevelop 5.7.211203.

The Part that opens PNG images intercepts keyboard events. The 'F' key toggles the "Fit image into the viewing area" option. The bug is reproducible in (almost) latest KDevelop master.

If you activate a split view (right-click on the tab bar to split views) without the PNG image, the 'F' key would be handled by the Terminal tool view, even though the PNG image would be visible in its non-active split view. I suppose another fix or a more general replacement fix is needed - one which would restrict KParts shortcuts to a widget that has focus.