From 55e616c9a3a957298f19f0594ee2a828fdfd8ad0 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sun, 8 Nov 2020 03:32:39 +0100 Subject: [PATCH] Fix same keybinding bug in curses client. --- new2/rogue_chat_curses.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() -- 2.30.2