SF.net SVN: geany:[3064] trunk/src/editor.c
eht16 at users.sourceforge.net
eht16 at xxxxx
Fri Oct 10 16:35:26 UTC 2008
Revision: 3064
http://geany.svn.sourceforge.net/geany/?rev=3064&view=rev
Author: eht16
Date: 2008-10-10 16:35:25 +0000 (Fri, 10 Oct 2008)
Log Message:
-----------
Fix for the last fix: do it the proper way by ignoring any modifiers we don't want, only check for Ctrl, Alt and Shift.
Modified Paths:
--------------
trunk/src/editor.c
Modified: trunk/src/editor.c
===================================================================
--- trunk/src/editor.c 2008-10-10 15:18:36 UTC (rev 3063)
+++ trunk/src/editor.c 2008-10-10 16:35:25 UTC (rev 3064)
@@ -193,12 +193,14 @@
editor_info.click_pos = sci_get_position_from_xy(doc->editor->sci, (gint)event->x, (gint)event->y, FALSE);
if (event->button == 1)
{
+ guint state = event->state & GEANY_KEYS_MODIFIER_MASK;
+
if (event->type == GDK_BUTTON_PRESS && editor_prefs.disable_dnd)
{
gint ss = sci_get_selection_start(doc->editor->sci);
sci_set_selection_end(doc->editor->sci, ss);
}
- if (event->type == GDK_BUTTON_PRESS && event->state & GDK_CONTROL_MASK)
+ if (event->type == GDK_BUTTON_PRESS && state == GDK_CONTROL_MASK)
{
sci_set_current_position(sci, editor_info.click_pos, FALSE);
keybindings_send_command(GEANY_KEY_GROUP_GOTO, GEANY_KEYS_GOTO_TAGDEFINITION);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list