If this is removed, the test will NOT exit after EXIT_TIMEOUT seconds.
Then, each Reporter subclass has a few calls to self.show_text with the text shown to the user. The instructions for the text-mode test already show how to exit it manually:
self.show_text(_("You can also close me by pressing ESC or Ctrl+C."))
The GtkReporter class doesn't:
self.show_text(_("Please press each key on your keyboard.")) self.show_text(_("If a key is not present in your keyboard, " "press the 'Skip' button below it to remove it " "from the test."))
It's very easy to fix, line 398 of scripts/key_test has:
GObject. timeout_ add_seconds( EXIT_TIMEOUT, reporter.quit)
If this is removed, the test will NOT exit after EXIT_TIMEOUT seconds.
Then, each Reporter subclass has a few calls to self.show_text with the text shown to the user. The instructions for the text-mode test already show how to exit it manually:
The GtkReporter class doesn't:
but it's trivial to add.