[Core] Fixed focus lost after message sending