# Is it expected behavior that when I right click at the end of a line to insert content, the selection selects through to the next line?

**URL:** <https://discuss.prosemirror.net/t/is-it-expected-behavior-that-when-i-right-click-at-the-end-of-a-line-to-insert-content-the-selection-selects-through-to-the-next-line/4792>\
**Category:** Uncategorized\
**Created:** [August 4, 2022, 6:26pm UTC](https://discuss.prosemirror.net/t/is-it-expected-behavior-that-when-i-right-click-at-the-end-of-a-line-to-insert-content-the-selection-selects-through-to-the-next-line/4792 "2022-08-04T18:26:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![linsannety](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/linsannety/32/1971_2.png) [@linsannety](https://discuss.prosemirror.net/u/linsannety)\
**Post date:** [August 4, 2022, 6:26pm UTC](https://discuss.prosemirror.net/t/is-it-expected-behavior-that-when-i-right-click-at-the-end-of-a-line-to-insert-content-the-selection-selects-through-to-the-next-line/4792/1 "2022-08-04T18:26:28Z")

</div>

![rightclickselection](https://discuss.prosemirror.net/uploads/secondsite/original/2X/1/1734d0ebe9c466df0a49734e64c1725ccc8783cd.gif)

---

<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:** [August 4, 2022, 9:47pm UTC](https://discuss.prosemirror.net/t/is-it-expected-behavior-that-when-i-right-click-at-the-end-of-a-line-to-insert-content-the-selection-selects-through-to-the-next-line/4792/2 "2022-08-04T21:47:05Z")

</div>

Might be odd native browser behavior. But you didn’t tell us which browser this is.

---

<div class="post-metadata">

**Author:** ![linsannety](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/linsannety/32/1971_2.png) [@linsannety](https://discuss.prosemirror.net/u/linsannety)\
**Post date:** [August 10, 2022, 6:33am UTC](https://discuss.prosemirror.net/t/is-it-expected-behavior-that-when-i-right-click-at-the-end-of-a-line-to-insert-content-the-selection-selects-through-to-the-next-line/4792/3 "2022-08-10T06:33:12Z")

</div>

Apologies about not including that, I’m using Google Chrome Version 104.0.5112.79.

---

<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:** [August 10, 2022, 11:56am UTC](https://discuss.prosemirror.net/t/is-it-expected-behavior-that-when-i-right-click-at-the-end-of-a-line-to-insert-content-the-selection-selects-through-to-the-next-line/4792/4 "2022-08-10T11:56:05Z")

</div>

Where does the emoji menu come from? My Chrome doesn’t have that.

---

<div class="post-metadata">

**Author:** ![andrews](https://discuss.prosemirror.net/letter_avatar_proxy/v4/letter/a/898d66/32.png) [@andrews](https://discuss.prosemirror.net/u/andrews)\
**Post date:** [August 10, 2022, 12:42pm UTC](https://discuss.prosemirror.net/t/is-it-expected-behavior-that-when-i-right-click-at-the-end-of-a-line-to-insert-content-the-selection-selects-through-to-the-next-line/4792/5 "2022-08-10T12:42:11Z")

</div>

It’s Chrome on the Mac. The issue mentioned happens in a vanilla contenteditable div so seemingly just a browser glitch as you mentioned.

---

<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:** [August 10, 2022, 12:56pm UTC](https://discuss.prosemirror.net/t/is-it-expected-behavior-that-when-i-right-click-at-the-end-of-a-line-to-insert-content-the-selection-selects-through-to-the-next-line/4792/6 "2022-08-10T12:56:38Z")

</div>

Then I’d say this is not something ProseMirror is going to ‘fix’ – if a native editing action has a somewhat unexpected effect, that’s a browser issue, not a library issue.
