chiark / gitweb /
keymap: Explain how to end the program
authorMartin Pitt <martin.pitt@ubuntu.com>
Sun, 16 Jan 2011 20:12:32 +0000 (21:12 +0100)
committerMartin Pitt <martin.pitt@ubuntu.com>
Sun, 16 Jan 2011 20:12:32 +0000 (21:12 +0100)
Pressing Escape will only actually work if keymap is currently examining the
primary keyboard. For other devices the user needs to press Control-C instead.

extras/keymap/keymap.c

index ed6b69d5f141d4b59c9bae21d473b1feb3864fca..719c30e60085ad0886da1269d31db099d604616d 100644 (file)
@@ -311,7 +311,7 @@ static void interactive(int fd)
 
        /* grab input device */
        ioctl(fd, EVIOCGRAB, 1);
-       puts("Press ESC to finish");
+       puts("Press ESC to finish, or Control-C if this device is not your primary keyboard");
 
        has_scan = has_key = 0;
        while (read_event(fd, &ev)) {