Bug 434872 - Keyboard shortcuts are pasted in the output file
Summary: Keyboard shortcuts are pasted in the output file
Status: RESOLVED INTENTIONAL
Alias: None
Product: kdiff3
Classification: Applications
Component: application (show other bugs)
Version: 1.8.5
Platform: Other Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: michael
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-24 09:50 UTC by bucurloredan
Modified: 2023-03-05 18:04 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bucurloredan 2021-03-24 09:50:36 UTC
SUMMARY
In certain conditions, keyboard shortcuts are pasted in the output file.

STEPS TO REPRODUCE
1. Open a 3-way merge
2. Configure a command (eg: "Go to next delta") to be a keyboard shortcut of type Alt+someLetter (Alt+N for example).

OBSERVED RESULT
When reaching the last diff, further Alt+N presses will result in 'N' being appended at the begginning of the diff section.
This only happens if in the output window, in the diff section, there are lines chosen from either A/B/C. The bug will not reproduce if there is <Merge conflict> or <No src lines>.

EXPECTED RESULT
The keyboard combination should never arrive in the output file, as this can go unnoticed by the developer.

SOFTWARE/OS VERSIONS
Windows: 10, 64-bit
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 5.77.0
Qt Version: 5.15.1 

ADDITIONAL INFORMATION
Comment 1 michael 2023-03-05 18:04:14 UTC
Upon review this only happens for disabled commands with ambiguous key equivalents that can also be valid text input depending on configuration. The current behavior matches that of kate. Use Control as part of the shortcut will by pass this as such key combinations are assumed to be a shortcut invocation attempt.