Pressing escape now exits with error code 1

This commit is contained in:
Scoopta 2020-01-26 11:22:29 -08:00
parent 1d149e8362
commit b43739921c

View File

@ -713,7 +713,7 @@ static gboolean key_press(GtkWidget* widget, GdkEvent* event, gpointer data) {
(void) data; (void) data;
switch(event->key.keyval) { switch(event->key.keyval) {
case GDK_KEY_Escape: case GDK_KEY_Escape:
exit(0); exit(1);
break; break;
case GDK_KEY_Return: case GDK_KEY_Return:
mod_shift = (event->key.state & GDK_SHIFT_MASK) == GDK_SHIFT_MASK; mod_shift = (event->key.state & GDK_SHIFT_MASK) == GDK_SHIFT_MASK;