Fixed bug: modifier keys no longer count as char input
[rodin/chimara.git] / libchimara / input.c
index 4bb92645402f254461a37eb95781d2857820a336..a4511dc57306e6fc2dec661f5496d568b11c8fbf 100644 (file)
@@ -417,6 +417,8 @@ on_shutdown_key_press_event(GtkWidget *widget, GdkEventKey *event, winid_t win)
 gboolean
 on_char_input_key_press_event(GtkWidget *widget, GdkEventKey *event, winid_t win)
 {
+       /* Ignore modifier keys, otherwise the char input will already trigger on 
+       the shift key when the user tries to type a capital letter */
        if(event->is_modifier)
                return FALSE; /* don't stop the event */