From e03f6096b3fdd75575ff12a2bc98205b8069b043 Mon Sep 17 00:00:00 2001 From: troido Date: Thu, 19 Apr 2018 00:10:47 +0200 Subject: tab now returns to game keeping entered string; / starts string with text / --- asciifarm/client/commandhandler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'asciifarm/client/commandhandler.py') diff --git a/asciifarm/client/commandhandler.py b/asciifarm/client/commandhandler.py index ebb773e..550484c 100644 --- a/asciifarm/client/commandhandler.py +++ b/asciifarm/client/commandhandler.py @@ -61,8 +61,8 @@ class CommandHandler: for action in actions: self.execute(action) - def runInput(self): - self.client.inputHandler.startTyping() + def runInput(self, startText=""): + self.client.inputHandler.startTyping(startText) def select(self, widget, value, relative=False, modular=False): self.client.display.getWidget(widget).select(value, relative, modular) -- cgit