Control+up/down paragraph skip appears random

Bug #1624635 reported by wolf
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
elementary OS
New
Undecided
Unassigned

Bug Description

When holding down Control and pressing up/down to skip paragraphs, the place where the cursor lands appears random. Sometimes it's partially through a sentence and other times it accurately lands at the beginning/end of the paragraph, where it should be. Latest Loki.

Revision history for this message
Zisu Andrei (matzipan) wrote :

Hello,

Can you please provide more information on what application you are using to do this? What is the text you have? What is the expected behavior? What is the actual behavior?

Revision history for this message
wolf (w+lf) wrote :

Scratch behaves as expected in that I paste a few paragraphs of lorem ipsum, put the cursor in any part, hold down control and press up and down, and the cursor predictably jumps to the next newline with down and to newlines and the tops of paragraphs with up. (This said, it would make more sense to have the two be consistent. I imagine most users want ctrl+up mid-paragraph to jump to the top of the block of text and the top of the text, etc.--not the newlines. And I imagine most users want ctrl+down to skip to the ends of paragraphs, not to the next newline.)

In any event, it might be a content-editable issue. In the latest Google Chrome and Loki, go into edit mode on Wikipedia or Quora, put the cursor mid-paragraph and try the same thing. If you ctrl+down, the cursor tends to go the same number of characters to the right as it was in the paragraph first clicked (rather than to the beginning/end of paragraph as in Scratch).

Revision history for this message
wolf (w+lf) wrote :

Here's another example. Sample text:

HEADING HEADING HEADING
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer metus elit, vestibulum pellentesque nisi ac, dapibus lacinia lorem. Ut non odio ligula. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus eu mattis mauris. Proin lobortis malesuada nunc, ut volutpat dolor tincidunt a. Morbi iaculis lectus volutpat ante porta, elementum ultricies augue laoreet.

HEADING HEADING HEADING
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer metus elit, vestibulum pellentesque nisi ac, dapibus lacinia lorem. Ut non odio ligula. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus eu mattis mauris. Proin lobortis malesuada nunc, ut volutpat dolor tincidunt a. Morbi iaculis lectus volutpat ante porta, elementum ultricies augue laoreet.

Put the cursor in-between one of the "HEADING"s in the first heading and press ctrl+down a few times.

In Scratch, after each press it goes to the end of (1) the first paragraph ("laoreet"), (2) the second heading, (3) the second paragraph ("laoreet"). I imagine this is the expected behavior and it's fine by me.

In Simplenote (Electron): (1) same function as pressing "down" without Ctrl, (2) the new line after the first paragraph, (3) the same place in the second heading line as in the first heading line, (4) etc., repeats order like first paragraph.

In this text box on Launchpad.net (Google Chrome): same as Simplenote (just described)

Revision history for this message
wolf (w+lf) wrote :

I'd also be happy to work on this and https://bugs.launchpad.net/elementaryos/+bug/1624189 -- just would need some help knowing where to look for what and getting set up with the codebase.

Revision history for this message
Zisu Andrei (matzipan) wrote :

You can join #elementary or #elementary-dev on freenode on IRC.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.