From: Christian Heller Date: Sun, 8 Nov 2020 02:32:39 +0000 (+0100) Subject: Fix same keybinding bug in curses client. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/%7B%7Bprefix%7D%7D/balance2?a=commitdiff_plain;h=55e616c9a3a957298f19f0594ee2a828fdfd8ad0;p=plomrogue2-experiments Fix same keybinding bug in curses client. --- diff --git a/new2/rogue_chat_curses.py b/new2/rogue_chat_curses.py index 0ffceeb..7030c29 100755 --- a/new2/rogue_chat_curses.py +++ b/new2/rogue_chat_curses.py @@ -517,9 +517,9 @@ class TUI: self.input_ = "" elif self.mode == self.mode_chat and key == '\n': if self.input_[0] == '/': - if self.input_ in {'/P', '/play'}: + if self.input_ in {'/' + self.keys['switch_to_play'], '/play'}: self.switch_mode('play') - elif self.input_ in {'/?', '/study'}: + elif self.input_ in {'/' + self.keys['switch_to_study'], '/study'}: self.switch_mode('study') elif self.input_ == '/help': self.help()