Ctrl-Click keyboard mouse event
- From: Carlos Pereira <jose carlos pereira ist utl pt>
- To: gtk-app-devel-list <gtk-app-devel-list gnome org>
- Subject: Ctrl-Click keyboard mouse event
- Date: Tue, 10 Nov 2009 21:56:56 +0000
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 been clicked: is Ctrl key down???
...
}
(I need this to implement multiple selections from my OpenGL code that
are consistent with multiple selections in GtkTreeView)
Thanks,
Carlos
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]