Pressing escape now exits with error code 1
This commit is contained in:
parent
1d149e8362
commit
b43739921c
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user