In GTK3, how do I get a DrawingArea to respond keyboard events? Should I connect the DrawingArea with a signal or is it more compicated? I'm using GTK3 with the C language.
I fianlly found the solution here. I only connected the signal, but the GTK_CAN_FOCUS also need to be set for the drawingrea.