diff --git a/modules/highgui/src/window_gtk.cpp b/modules/highgui/src/window_gtk.cpp index 91a59d2288..94337d27e9 100644 --- a/modules/highgui/src/window_gtk.cpp +++ b/modules/highgui/src/window_gtk.cpp @@ -1632,7 +1632,7 @@ static gboolean icvOnKeyPress(GtkWidget* widget, GdkEventKey* event, gpointer us break; case GDK_Return: case GDK_Linefeed: - code = '\n'; + code = 13; break; case GDK_Tab: code = '\t';