mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
Colin Watson suggests that Alt-click (or Option-click) could
usefully be equivalent to right-clicking on platforms other than OS X; in particular, it's useful if you're running Linux on Apple hardware such as PowerBook which inherently has only one button. So here's the fix for GTK, and Windows as well (the latter for completeness and consistency, not because I can actually think of any reason somebody might be running Windows on one-button hardware). [originally from svn r5907]
This commit is contained in:
4
gtk.c
4
gtk.c
@ -387,10 +387,10 @@ static gint button_event(GtkWidget *widget, GdkEventButton *event,
|
||||
|
||||
if (event->button == 2 || (event->state & GDK_SHIFT_MASK))
|
||||
button = MIDDLE_BUTTON;
|
||||
else if (event->button == 3 || (event->state & GDK_MOD1_MASK))
|
||||
button = RIGHT_BUTTON;
|
||||
else if (event->button == 1)
|
||||
button = LEFT_BUTTON;
|
||||
else if (event->button == 3)
|
||||
button = RIGHT_BUTTON;
|
||||
else
|
||||
return FALSE; /* don't even know what button! */
|
||||
|
||||
|
Reference in New Issue
Block a user