Steps to reproduce
Start Minecraft, and connect to a realm (I don't know if it affects single player mode)
Switch focus (using Cmd-Tab) to another app, for example Safari
Switch focus back to Minecraft
Click "Back to game" button
Hit "t" button to enter text
Type any text containing an "a", e.g. "foo bar"
Watch in despair as any text before the "a" vanishes from your input
Is it Reproducible?
Yes, often; but not always. It's not only on my machine; also have confirmed the behaviour on my wife's computer (with Yosemite) and my son's computer (also Yosemite, I believe).
Is it only the "a" character that is affected?
Usually, but at least once I've had the "c" character affected too.
Any screenshot?
Yes, I attached a screenshot of what the text looks like when I've typed "foo ba" – hitting the "a" makes the text change to look like it's become highlighted, and hitting any other character afterwards makes all the text typed so far disappear.
Thank you for your report!
However, this issue is a Duplicate of MC-3643.
It has been linked to this report. If you have additional information, please add it to that report.
Please search before reporting, as it's likely that one exists already.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki