Input events are only allowed after a connection was established (connection state is active) This check aborts input sending when done before that. (cherry picked from commit 102869f6a860140174da9dd3189babf6966c9149)