From f8bda04d90a06cf67ac9d9b8c56abb3edc3dfa6b Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Wed, 19 Oct 2022 15:05:18 +0100 Subject: [PATCH] Remove the on_space from key01 in the docs While in this part of the docs we do want to keep the bell (see key02), it was an error in the code that it included this event in key01. Removing it from here because adding this bit of code for key02 is a key (no pun) part of the docs. --- docs/examples/guide/input/key01.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/docs/examples/guide/input/key01.py b/docs/examples/guide/input/key01.py index c04a7cd26..44d88d558 100644 --- a/docs/examples/guide/input/key01.py +++ b/docs/examples/guide/input/key01.py @@ -12,9 +12,6 @@ class InputApp(App): def on_key(self, event: events.Key) -> None: self.query_one(TextLog).write(event) - def key_space(self) -> None: - self.bell() - if __name__ == "__main__": app = InputApp()