home
·
contact
·
privacy
projects
/
plomrogue2-experiments
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d249069
)
Fix same keybinding bug in curses client.
author
Christian Heller
<c.heller@plomlompom.de>
Sun, 8 Nov 2020 02:32:39 +0000
(
03:32
+0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Sun, 8 Nov 2020 02:32:39 +0000
(
03:32
+0100)
new2/rogue_chat_curses.py
patch
|
blob
|
history
diff --git
a/new2/rogue_chat_curses.py
b/new2/rogue_chat_curses.py
index 0ffceeb2d4c5d64c5d60df1fb1e4e38881ffa403..7030c296353332d30cc4cb4e032a6d38d9026687 100755
(executable)
--- 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()