Fix escape key

This commit is contained in:
Will McGugan
2022-05-20 14:28:03 +01:00
parent edc1e54aed
commit cb1289ff97
6 changed files with 11 additions and 13 deletions

View File

@@ -148,6 +148,9 @@ class BasicApp(App):
def key_x(self):
self.panic(self.tree)
def key_escape(self):
self.app.bell()
def key_t(self):
# Pressing "t" toggles the content of the TweetBody widget, from a long "Lorem ipsum..." to a shorter one.
tweet_body = self.screen.query("TweetBody").first()