You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had to use shift+key (for example shift+a) to use and drop inventory items.
Issue was in repl.it.
I added tcod.event.K_MODE to ignored modifier keys to solve.
class AskUserEventHandler(EventHandler):
"""Handles user input for actions which require special input."""
def ev_keydown(self, event: tcod.event.KeyDown) -> Optional[ActionOrHandler]:
"""By default any key exits this input handler."""
if event.sym in { # Ignore modifier keys.
tcod.event.K_LSHIFT,
tcod.event.K_RSHIFT,
tcod.event.K_LCTRL,
tcod.event.K_RCTRL,
tcod.event.K_LALT,
tcod.event.K_RALT,
}:
return None
return self.on_exit()
The text was updated successfully, but these errors were encountered:
I had to use shift+
key
(for example shift+a) to use and drop inventory items.Issue was in repl.it.
I added
tcod.event.K_MODE
to ignored modifier keys to solve.The text was updated successfully, but these errors were encountered: