ProgerXP / Notepad2e

Word highlighting, simultaneous editing, split views, math evaluation, un/grep, comment reformatting, UAC elevation, complete regexps (PCRE), Lua lexers, DPI awareness and more (XP+)
Other
375 stars 52 forks source link

Do not move caret on Ctrl+Up/Down #428

Open ProgerXP opened 2 years ago

ProgerXP commented 2 years ago

This is a Notepad2 (Scintilla?) behaviour.

Ctrl+Up/Down allow scrolling the text only, without moving the caret. However, the caret is moved if it goes off screen as a result of this scrolling (i.e. position it on the first visible line and press Ctrl+Down). There is no need to move it in any case, especially because with ScrollYCaretPolicy this causes the scrolling to jerk.