get some data on your clipboard. any old data will do,
start a post in discourse.
In rapid succession press ENTERENTERCTRL+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.
It’s tricky, but fairly reliably reproducible; it’s all down to how quickly you press the keys. The quicker you do it, the more likely you’ll trigger the bug.
primarily Chrome, i’ve also gotten IE and Firefox to do it.
It’s much easier to reproduce when the site is having one of its slow moments, which is much more common on my home forum that it is here on meta.d. i have been able to reproduce it at steady state as well.
Tested configurations that exhibit the issue:
Membrane and mechanical keyboards (i have machines with both types and both types exhibit the bug.)
Logitech G710+ (mechanical)
Surface Pro 2 Type cover (membrane)
Logitech G510s (membrane)
Logitech K800 (membrane)
laptop keyboards (membrane, no known manufacturer other than “Google” and “HP”)
Hardware (CPU, Ram size and hard drive type) reproducable on:
@accalia I’m able to repro this but in order to do so I have to really press the keys are a rate that I feel like no normal user would do. At that speed I’m pretty sure I’m hitting ctrl+v+enter at some point.
However, I did realized that if you go at a somewhat slower pace it raises the Post cannot be empty alert which means that there was an attempt to submit.