Bug 434872

Summary: Keyboard shortcuts are pasted in the output file
Product: [Applications] kdiff3 Reporter: bucurloredan
Component: applicationAssignee: michael <reeves.87>
Status: RESOLVED INTENTIONAL    
Severity: normal    
Priority: NOR    
Version First Reported In: 1.8.5   
Target Milestone: ---   
Platform: Other   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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.