SIGN IN SIGN UP

Fix inputhook implementation to be compatible with asyncio.run().

`asyncio.get_event_loop()` got deprecated. So we can't install an event loop
with inputhook upfront and then use in in prompt_toolkit. Instead, we can take
the inputhook as an argument in `Application.run()` and `PromptSession.run()`,
and install it in the event loop that we create ourselves using
`asyncio.run()`.
J
Jonathan Slenders committed
2e2175a736fdc6f1890a41c8a13065d44586e13a
Parent: b6a9f05