Bug 425081 - Unexpected cursor behaviour with "Ctrl-Up" and "Ctrl-Shift-Up"
Summary: Unexpected cursor behaviour with "Ctrl-Up" and "Ctrl-Shift-Up"
Status: REPORTED
Alias: None
Product: kmail2
Classification: Applications
Component: composer (show other bugs)
Version: 5.13.3
Platform: Kubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-06 19:27 UTC by aniche
Modified: 2020-08-07 11:21 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description aniche 2020-08-06 19:27:55 UTC
In Kmail Compose, i would really like "Ctrl-Up" to take the cursor to the beginning of the line or paragraph. This would then mirror LibreOffice Writer (& MS Word) cursor behaviour. Currently, Ctrl-Up and Ctrl-Down seem to do nothing in Compose view, at least in Rich Text mode.

ALso, I notice that Ctrl-Shift-Up seems to move a paragraph up by one line if the cursor is at the beginning of the paragraph - is this intentional? According to the above change request, Ctrl-Shift-Up should apply selection to mirror the above-mentioned request. eg select from current cursor position to top of line/para.
Comment 1 Laurent Montel 2020-08-07 10:07:47 UTC
(In reply to aniche from comment #0)
> In Kmail Compose, i would really like "Ctrl-Up" to take the cursor to the
> beginning of the line or paragraph. This would then mirror LibreOffice
> Writer (& MS Word) cursor behaviour. Currently, Ctrl-Up and Ctrl-Down seem
> to do nothing in Compose view, at least in Rich Text mode.

Ok can be a good idea.

> 
> ALso, I notice that Ctrl-Shift-Up seems to move a paragraph up by one line
> if the cursor is at the beginning of the paragraph - is this intentional?

yep it's intentional.

> According to the above change request, Ctrl-Shift-Up should apply selection
> to mirror the above-mentioned request. eg select from current cursor
> position to top of line/para.

We use same method in kate/qtc etc.
Comment 2 Laurent Montel 2020-08-07 11:21:20 UTC
Git commit 0987a51e213a1b31ef2a454c87153964e50b4257 by Laurent Montel.
Committed on 07/08/2020 at 11:20.
Pushed by mlaurent into branch 'master'.

Fix Bug 425081

"Ctrl-Up" to take the cursor to the beginning of the line or paragraph. "

M  +20   -2    src/texteditor/plaintexteditor/plaintexteditor.cpp
M  +1    -0    src/texteditor/plaintexteditor/plaintexteditor.h
M  +20   -2    src/texteditor/richtexteditor/richtexteditor.cpp
M  +1    -0    src/texteditor/richtexteditor/richtexteditor.h

https://invent.kde.org/pim/kpimtextedit/commit/0987a51e213a1b31ef2a454c87153964e50b4257