Remove some commented unneeded code

master
Daniel Edgecumbe 7 years ago
parent 0709fb00e2
commit 1af8f7ab2a

@ -35,18 +35,12 @@ async def keypress_loop(window, callback, resize_callback):
# Unhandled key. Don't care. # Unhandled key. Don't care.
pass pass
# first = True
while True: while True:
# This is basically spinning which is really annoying. # This is basically spinning which is really annoying.
# TODO: find a way of having async blocking getch/getkey. # TODO: find a way of having async blocking getch/getkey.
try: try:
key = window.getkey() key = window.getkey()
except Exception: except Exception:
# This is bonkers and I don't understand it.
# if first:
# await callback(DEFAULT_MODE[0]) # hackery!
# first = False
await asyncio.sleep(0.05) await asyncio.sleep(0.05)
continue continue

Loading…
Cancel
Save