YOU SAID:
when you're trying to write but you get distracted
INTO JAPANESE
あなたが書こうとしているのに気を散らすとき
BACK INTO ENGLISH
When you're distracted by what you're about to write
INTO JAPANESE
あなたが書こうとしていることに気を取られているとき
BACK INTO ENGLISH
When you are distracted by what you are about to write
INTO JAPANESE
あなたが書こうとしていることに気を取られているとき
BACK INTO ENGLISH
When you are distracted by what you are about to write
That didn't even make that much sense in English.