The key that the user pressed to trigger the KeyboardInterrupt is now added to the exception as the first argument. This is useful for handling interrupts triggered by different keys in different ways. For example: using Ctrl-C to quit, and ESC (or some other key) as a "back" button.
The key that the user pressed to trigger the KeyboardInterrupt is now added to the exception as the first argument. This is useful for handling interrupts triggered by different keys in different ways. For example: using Ctrl-C to quit, and ESC (or some other key) as a "back" button.