Bug 461623

Summary: Incorrect behavior when selecting text with Shift and the arrow keys.
Product: [Applications] kate Reporter: Andrei Dragomirescu <andrei.dragomirescu>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: christoph, eric1
Priority: NOR    
Version First Reported In: 21.12.3   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Andrei Dragomirescu 2022-11-09 09:19:07 UTC
SUMMARY

After selecting some text whit Shift and the arrow keys in Kate, the up and down arrow keys continue to select or deselect text, although the Shift key is no longer pressed.


STEPS TO REPRODUCE

1. Write a few long text paragraphs in Kate (e.g. the first paragraphs of Lorem Ipsum).
2. Start randomly selecting some text with Shift and the arrow keys.
3. After selecting some text release the Shift key and continue pressing either the up or the down arrow key.


OBSERVED RESULT

Additional and unwanted text will be selected.


EXPECTED RESULT

Selected text should be deselected automatically.


SOFTWARE/OS VERSIONS
Windows: --
macOS: --
Linux/KDE Plasma: openSUSE Leap 15.4
(available in About System)
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2


ADDITIONAL INFORMATION

The bug was only found in Kate.
Comment 1 Eric Armbruster 2022-11-09 16:06:12 UTC
Cannot reproduce with Kate 22.08
Comment 2 Christoph Cullmann 2022-11-09 20:03:51 UTC
Author: Christoph Cullmann <cullmann@kde.org>  2022-01-16 18:29:57
Committer: Christoph Cullmann <cullmann@kde.org>  2022-01-16 18:29:57
Parent: 3be086c24ea5b3853b46b6c65af1a8c694186c1f (Fix drag pixmap highlight sometimes does not match original text)
Child:  ec9ac1b068a8dcdb812a132f21b5a657863b4109 (Fix camel cursor when last word is of one letter only)
Branches: master, remotes/origin/master, remotes/origin/work/better-on-disk-update, remotes/origin/work/bharadwaj/default-indent-on-paste, remotes/origin/work/janb/work-on-leap, remotes/origin/work/more-styles, remotes/origin/work/script-exec, remotes/origin/work/virtualspace
Follows: v4.100.0-rc1
Precedes: v5.100.0-rc1, v5.91.0-rc1, v5.92.0, v5.92.0-rc1, v5.93.0, v5.93.0-rc1, v5.94.0, v5.94.0-rc1, v5.94.0-rc2, v5.95.0, v5.95.0-rc1, v5.96.0, v5.96.0-rc1, v5.97.0, v5.97.0-rc1, v5.98.0, v5.98.0-rc1, v5.99.0, v5.99.0-rc1

    Revert "Do not cancel mouse selection when using the keyboard"
    
    This reverts commit 5dce70a9693f8cce37f733b4687bb9b303376742.
    
    => this leads to regressions
    
    if somebody has time to properly reproduce and fix that, we can reapply
    this, otherwise it is better to have some always working state without
    this small usability improvement
    
    BUG: 447525
    BUG: 446189
    
    frameworks/ktexteditor#11

*** This bug has been marked as a duplicate of bug 447525 ***