# Selecting with SHIFT-UP Arrow stops when the line above is shorter than the current line

**URL:** https://discuss.prosemirror.net/t/selecting-with-shift-up-arrow-stops-when-the-line-above-is-shorter-than-the-current-line/7853
**Category:** Uncategorized
**Created:** [October 31, 2024, 3:29pm UTC](https://discuss.prosemirror.net/t/selecting-with-shift-up-arrow-stops-when-the-line-above-is-shorter-than-the-current-line/7853 "2024-10-31T15:29:48Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![thomasdeanwhite](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/thomasdeanwhite/32/3433_2.png) [@thomasdeanwhite](https://discuss.prosemirror.net/u/thomasdeanwhite)
#### Post date: [October 31, 2024, 3:29pm UTC](https://discuss.prosemirror.net/t/selecting-with-shift-up-arrow-stops-when-the-line-above-is-shorter-than-the-current-line/7853/1 "2024-10-31T15:29:48Z")

</div>

When targeting a paragraph that wraps, there’s strange behaviour when using shift up to select when one line is longer than another. Selection seems to freeze, and transactions seem to stop.

Reproduction:

- Visit [ProseMirror basic example](https://prosemirror.net/examples/basic/)
- Make a single paragraph where the second wrapped line is longer than the first ![image](https://discuss.prosemirror.net/uploads/secondsite/original/2X/9/9f1713ea200fbc6b31b4a71658a7bc44006fb9c9.png)
- Target the end of the second (longer) line, and press shift up. Now press shift up again

Expected: Both lines are selected. Pressing shift up will continue selecting contents of the document above. Actual: Only the second line is selected, and shift up does nothing if pressed again

 ![image](https://discuss.prosemirror.net/uploads/secondsite/original/2X/3/341c2c19f591bcf118c44f9acfe6d58d4663c17d.png)

I couldn’t get into the `filterTransaction` method of a plugin by using shift up when in this state.

---

<div class="post-metadata">

### Author: ![marijn](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/marijn/32/15_2.png) [@marijn](https://discuss.prosemirror.net/u/marijn)
#### Post date: [November 1, 2024, 4:10am UTC](https://discuss.prosemirror.net/t/selecting-with-shift-up-arrow-stops-when-the-line-above-is-shorter-than-the-current-line/7853/2 "2024-11-01T04:10:16Z")

</div>

This appears to be a recently introduced Chrome bug (already reported as [#369904697](https://issues.chromium.org/issues/369904697)).

---

<div class="post-metadata">

### Author: ![thomasdeanwhite](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/thomasdeanwhite/32/3433_2.png) [@thomasdeanwhite](https://discuss.prosemirror.net/u/thomasdeanwhite)
#### Post date: [November 1, 2024, 9:25am UTC](https://discuss.prosemirror.net/t/selecting-with-shift-up-arrow-stops-when-the-line-above-is-shorter-than-the-current-line/7853/3 "2024-11-01T09:25:46Z")

</div>

Thanks Marijn, and thanks for all the work on ProseMirror! I’ll keep track of the bug on the Chrome repo
