From 06292acec341b01fbb31b4ae42e1ac4b87ad4b54 Mon Sep 17 00:00:00 2001 From: Ben Clayton Date: Wed, 23 Aug 2017 16:35:15 +0100 Subject: [PATCH] Remove event listeners from input class (#46) --- src/Terminal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Terminal.php b/src/Terminal.php index e7a18d7..a1b3486 100644 --- a/src/Terminal.php +++ b/src/Terminal.php @@ -132,7 +132,7 @@ public function isDisplayingScreen(string $screenClassName): bool public function removeAllListeners() { - $this->io->removeAllListeners(); + $this->io->getInput()->removeAllListeners(); return $this; }