aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-text-event-processor-emacs-like.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2008-02-20 03:05:09 +0800
committerMilan Crha <mcrha@src.gnome.org>2008-02-20 03:05:09 +0800
commitad7d90b2242ed1719d000de510acf56875c61ac7 (patch)
treeebd588642a1659ccafdbffffc6ecdd3a79624408 /e-util/e-text-event-processor-emacs-like.c
parentbbdb1887e18ddc02f0260067e68bb3e76dc101a2 (diff)
downloadgsoc2013-evolution-ad7d90b2242ed1719d000de510acf56875c61ac7.tar.gz
gsoc2013-evolution-ad7d90b2242ed1719d000de510acf56875c61ac7.tar.zst
gsoc2013-evolution-ad7d90b2242ed1719d000de510acf56875c61ac7.zip
** Fix for bug #209353
2008-02-19 Milan Crha <mcrha@redhat.com> ** Fix for bug #209353 * e-util/e-text-event-processor-emacs-like.c: (e_text_event_processor_emacs_like_event): Allow paste text on mouse middle button click. * widgets/table/e-table-item.c: (eti_event): Pass Home/End keys to cell when editing. svn path=/trunk/; revision=35055
Diffstat (limited to 'e-util/e-text-event-processor-emacs-like.c')
-rw-r--r--e-util/e-text-event-processor-emacs-like.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/e-util/e-text-event-processor-emacs-like.c b/e-util/e-text-event-processor-emacs-like.c
index dfde0cf446..e6416a78e9 100644
--- a/e-util/e-text-event-processor-emacs-like.c
+++ b/e-util/e-text-event-processor-emacs-like.c
@@ -131,18 +131,18 @@ e_text_event_processor_emacs_like_event (ETextEventProcessor *tep, ETextEventPro
*/
switch (event->type) {
case GDK_BUTTON_PRESS:
- if (event->button.button == 1) {
+ if (event->button.button == 1 || event->button.button == 2) {
command.action = E_TEP_GRAB;
command.time = event->button.time;
g_signal_emit_by_name (tep, "command", &command);
- if (event->button.state & GDK_SHIFT_MASK)
+ if (event->button.button == 1 && event->button.state & GDK_SHIFT_MASK)
command.action = E_TEP_SELECT;
else
command.action = E_TEP_MOVE;
command.position = E_TEP_VALUE;
command.value = event->button.position;
command.time = event->button.time;
- tep_el->mouse_down = TRUE;
+ tep_el->mouse_down = event->button.button == 1;
}
break;
case GDK_2BUTTON_PRESS: