diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 2b79315b3d..f192a7ef11 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -683,16 +683,17 @@ static long map_to_wx_keysym( GdkEventKey *event ) case GDK_F11: key_code = WXK_F11; break; case GDK_F12: key_code = WXK_F12; break; default: - { - if (event->length == 1) { if (event->length == 1) { - key_code = (unsigned char)*event->string; - } - else if ((keysym & 0xFF) == keysym) - { - key_code = (guint)keysym; + if (event->length == 1) + { + key_code = (unsigned char)*event->string; + } + else if ((keysym & 0xFF) == keysym) + { + key_code = (guint)keysym; + } } } } diff --git a/src/gtk1/window.cpp b/src/gtk1/window.cpp index 2b79315b3d..f192a7ef11 100644 --- a/src/gtk1/window.cpp +++ b/src/gtk1/window.cpp @@ -683,16 +683,17 @@ static long map_to_wx_keysym( GdkEventKey *event ) case GDK_F11: key_code = WXK_F11; break; case GDK_F12: key_code = WXK_F12; break; default: - { - if (event->length == 1) { if (event->length == 1) { - key_code = (unsigned char)*event->string; - } - else if ((keysym & 0xFF) == keysym) - { - key_code = (guint)keysym; + if (event->length == 1) + { + key_code = (unsigned char)*event->string; + } + else if ((keysym & 0xFF) == keysym) + { + key_code = (guint)keysym; + } } } }