From d4ef5bc16a9cc871d5b4f77280f519b7d924700f Mon Sep 17 00:00:00 2001 From: klchang Date: Fri, 13 Oct 2017 20:05:55 +0800 Subject: [PATCH] fix the possible bug for key mapping in Linux GTK library --- modules/highgui/src/window_gtk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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';