Hi Emmanuel,
thank you very much, that's exactly what I needed,
Best regards,
Carlos
When a button press event is triggered, what is the proper way to know if
the user is pressing down the Ctrl key?
I think that this is what you need:
if (event->button == 1 && (event->state & GDK_CONTRO
On Tue, Nov 10, 2009 at 10:56 PM, Carlos Pereira <
jose.carlos.pere...@ist.utl.pt> wrote:
> Hi list,
> When a button press event is triggered, what is the proper way to know if
> the user is pressing down the Ctrl key?
>
> Tipically I would want to know this inside a button press event callback:
>
Hi list,
When a button press event is triggered, what is the proper way to know
if the user is pressing down the Ctrl key?
Tipically I would want to know this inside a button press event callback:
int handle_button_press (GtkWidget *widget,
GdkEventButton *event, void *data)
{
mouse button has