# Premature submitting of post on paste after newline

**URL:** <https://meta.discourse.org/t/premature-submitting-of-post-on-paste-after-newline/28714>\
**Category:** Bug\
**Created:** [12 Maggio 2015, 6:23pm UTC](https://meta.discourse.org/t/premature-submitting-of-post-on-paste-after-newline/28714 "2015-05-12T18:23:36Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![accalia](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/accalia/32/48626_2.png) [@accalia](https://meta.discourse.org/u/accalia)\
**Post date:** [12 Maggio 2015, 6:23pm UTC](https://meta.discourse.org/t/premature-submitting-of-post-on-paste-after-newline/28714/1 "2015-05-12T18:23:36Z")

</div>

Reproduction steps:

1. get some data on your clipboard. any old data will do,
2. start a post in discourse.
3. In rapid succession press ENTER ENTER CTRL+v to past contents in new paragraph

Expected result: two carriage returns are entered and the clipboard content is pasted into the editor

Actual result: If you were fast enough on that trigger the post will be submitted without the pasted content.

I suspect this is because discourse is handling the CTRLENTER keyboard shortcut incorrectly. Probably by asking “is the CTRL button pressed now?” when processing an enter key, rather than asking the key event directly if any buckybits were set when the key was pressed.

---

_[View the full topic](https://meta.discourse.org/t/premature-submitting-of-post-on-paste-after-newline/28714)._
