aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2004-10-03 13:06:03 +0000
committernyamatongwe <devnull@localhost>2004-10-03 13:06:03 +0000
commit03bbe2495ffa3a4973bf088fd2f71638c66b64f6 (patch)
tree880c55b2b3a42a70617a8fe9bb16be63f3d96a6d
parentae1f8296ba5ffa9f54a69f86b708628d93b82f9b (diff)
downloadscintilla-mirror-03bbe2495ffa3a4973bf088fd2f71638c66b64f6.tar.gz
Patch from Stephan Deibel for GTK+ that makes rectangular
selection use Alt rather than Ctrl on Windows so that it follows the platform convention.
-rw-r--r--gtk/ScintillaGTK.cxx21
1 files changed, 12 insertions, 9 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx
index 0a5857d95..6e75143b7 100644
--- a/gtk/ScintillaGTK.cxx
+++ b/gtk/ScintillaGTK.cxx
@@ -1705,16 +1705,19 @@ gint ScintillaGTK::PressThis(GdkEventButton *event) {
gtk_widget_grab_focus(PWidget(wMain));
if (event->button == 1) {
- //ButtonDown(pt, event->time,
- // event->state & GDK_SHIFT_MASK,
- // event->state & GDK_CONTROL_MASK,
- // event->state & GDK_MOD1_MASK);
- // Instead of sending literal modifiers use control instead of alt
- // This is because all the window managers seem to grab alt + click for moving
+ // On X, instead of sending literal modifiers use control instead of alt
+ // This is because most X window managers grab alt + click for moving
+#if !PLAT_GTK_WIN32
ButtonDown(pt, event->time,
- (event->state & GDK_SHIFT_MASK) != 0,
- (event->state & GDK_CONTROL_MASK) != 0,
- (event->state & GDK_CONTROL_MASK) != 0);
+ (event->state & GDK_SHIFT_MASK) != 0,
+ (event->state & GDK_CONTROL_MASK) != 0,
+ (event->state & GDK_CONTROL_MASK) != 0);
+#else
+ ButtonDown(pt, event->time,
+ (event->state & GDK_SHIFT_MASK) != 0,
+ (event->state & GDK_CONTROL_MASK) != 0,
+ (event->state & GDK_MOD1_MASK) != 0);
+#endif
} else if (event->button == 2) {
// Grab the primary selection if it exists
Position pos = PositionFromLocation(pt);