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'd like to be able to close/end my application within unit tests without calling exit(0), because this exits from the unit test framework. But, if I don't call exit(0) the keyboard binding keeps the application alive forever. Ideally there would be a method to unbind all keys, and tell the Keyboard class to stop capturing input.
Thanks.
The text was updated successfully, but these errors were encountered:
I tried to do this with my own version, but it turns out to be a little trickier than I thought, because StreamSubscription objects are lost when a client uses the bindKey().listen method. I think the Keyboard class needs to capture those subscriptions so it can cancel them.
I'd like to be able to close/end my application within unit tests without calling exit(0), because this exits from the unit test framework. But, if I don't call exit(0) the keyboard binding keeps the application alive forever. Ideally there would be a method to unbind all keys, and tell the Keyboard class to stop capturing input.
Thanks.
The text was updated successfully, but these errors were encountered: