aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-10-03 03:27:47 +0800
committerChris Lahey <clahey@src.gnome.org>2001-10-03 03:27:47 +0800
commit8f6ee6cb9b3292a91ac783c25508a701d34400f9 (patch)
treeabd63eff6a91ac8943a74b23f4475e02b6fc0933 /e-util
parent1057efd639f0f3f0cef84fb492ef4b6bc4bd8bce (diff)
downloadgsoc2013-evolution-8f6ee6cb9b3292a91ac783c25508a701d34400f9.tar.gz
gsoc2013-evolution-8f6ee6cb9b3292a91ac783c25508a701d34400f9.tar.zst
gsoc2013-evolution-8f6ee6cb9b3292a91ac783c25508a701d34400f9.zip
Don't handle control-enter if allow_newlines is off. Fixes Ximian bug
2001-10-02 Christopher James Lahey <clahey@ximian.com> * gal/util/e-text-event-processor-emacs-like.c (e_text_event_processor_emacs_like_event): Don't handle control-enter if allow_newlines is off. Fixes Ximian bug #3742. svn path=/trunk/; revision=13345
Diffstat (limited to 'e-util')
-rw-r--r--e-util/e-text-event-processor-emacs-like.c22
1 files changed, 16 insertions, 6 deletions
diff --git a/e-util/e-text-event-processor-emacs-like.c b/e-util/e-text-event-processor-emacs-like.c
index f3077ae42f..652e4b9ff6 100644
--- a/e-util/e-text-event-processor-emacs-like.c
+++ b/e-util/e-text-event-processor-emacs-like.c
@@ -306,13 +306,23 @@ e_text_event_processor_emacs_like_event (ETextEventProcessor *tep, ETextEventPro
case GDK_Return:
case GDK_KP_Enter:
if (tep->allow_newlines) {
- command.action = E_TEP_INSERT;
- command.position = E_TEP_SELECTION;
- command.value = 1;
- command.string = "\n";
+ if (key.state & GDK_CONTROL_MASK) {
+ command.action = E_TEP_ACTIVATE;
+ command.position = E_TEP_SELECTION;
+ } else {
+ command.action = E_TEP_INSERT;
+ command.position = E_TEP_SELECTION;
+ command.value = 1;
+ command.string = "\n";
+ }
} else {
- command.action = E_TEP_ACTIVATE;
- command.position = E_TEP_SELECTION;
+ if (key.state & GDK_CONTROL_MASK) {
+ command.action = E_TEP_NOP;
+ command.position = E_TEP_SELECTION;
+ } else {
+ command.action = E_TEP_ACTIVATE;
+ command.position = E_TEP_SELECTION;
+ }
}
break;
case GDK_Escape:
/commit/net?h=gnome-3.24&id=ff73bbefa405eb38e8803adbb35e311a91886427'>- Convert to USES=libtooltijl2014-07-103-29/+16 * - Depend on net/libosip2 instead of net/libosiptijl2014-07-103-15/+23 * - Convert net/librouteros to USES=libtool and bump dependent portstijl2014-07-102-10/+7 * - Add USES=libtool and INSTALL_TARGET=install-striptijl2014-07-102-19/+13 * - Add USES=libtool and INSTALL_TARGET=install-striptijl2014-07-102-12/+11 * - Add USES=libtool and INSTALL_TARGET=install-striptijl2014-07-102-7/+9 * - USES=libtool pathfix tar:bzip2tijl2014-07-104-22/+7 * Remove indefinite articles and trailing periods from COMMENT, plus minorolgeni2014-07-10129-129/+129 * - Convert to USES=libtooltijl2014-07-102-5/+5 * - USES=libtool tar:bzip2tijl2014-07-103-81/+21 * - USES=libtool tar:bzip2tijl2014-07-102-9/+8 * - Add USES=libtool and INSTALL_TARGET=install-striptijl2014-07-102-9/+6 * - Convert to USES=libtooltijl2014-07-102-3/+4 * - Convert net/sdl_net to USES=libtool and bump dependent portstijl2014-07-102-12/+7 * - New LIB_DEPENDS syntaxtijl2014-07-103-20/+8 * Add USES=libtool and INSTALL_TARGET=install-striptijl2014-07-102-18/+20 * Convert to USES=libtooltijl2014-07-102-4/+3 * - Add USES=libtool to net/sofia-sip and bump dependent portstijl2014-07-102-7/+9 * - USES=libtool pathfixtijl2014-07-103-23/+6 * Add USES=libtool and INSTALL_TARGET=install-striptijl2014-07-092-9/+7 * Add USES=libtool and INSTALL_TARGET=install-striptijl2014-07-092-3/+6 * Add USES=libtool and INSTALL_TARGET=install-striptijl2014-07-092-10/+4 * Remove LIBTOOLFILEStijl2014-07-092-2/+1 * net/py-libcloud: Deprecate USE_BZIP2koobs2014-07-091-3/+3 * Update net/arping to 2.14.gavin2014-07-092-3/+3 * net/py-kombu: update to 3.0.21wg2014-07-092-3/+3 * net/mosquitto: fix plist, don't need to try to delete python libdirsswills2014-07-081-2/+0 * - Switch to USES=libtool, drop .la filesamdmi32014-07-082-2/+2 * Horde package update:mm2014-07-084-6/+6 * net/py-smb: update to 1.1.10rm2014-07-082-3/+3 * Add an option to turn on/off SNMP support (enabled by default).jkim2014-07-081-3/+5 * net/mosquitto: make python support optionalswills2014-07-082-7/+19 * - Convert security/libsodium to USES=libtool and bump dependent portstijl2014-07-071-1/+1 * net/bmon: Update to 3.3, Update MAINTAINERkoobs2014-07-076-69/+32 * - Update to 14.0.0sunpoet2014-07-073-41/+5 * Remove expired port:rene2014-07-066-68/+0 * net/linphone-base: stage, convert to use ports readlinemarino2014-07-063-23/+29 * Update to 1.8.1.adamw2014-07-063-17/+23 * net/libnet: Fix build on DragonFly (dports)marino2014-07-061-2/+2 * net/p5-Net-OpenSSH - update to version 0.62az2014-07-064-11/+23 * Unbreakantoine2014-07-051-1/+1 * Remove NOPORTDOCS and NOPORTEXAMPLES.adamw2014-07-0537-127/+138 * - Update to 0.30sunpoet2014-07-042-3/+3 * net/p5-Net-Works: 0.16 -> 0.17pi2014-07-042-4/+3 * Bump PORTREVISION on all ports with USE_SQLITE=yes or USE_SQLITE=3 thattijl2014-07-044-1/+4 * - Switch to USES=libtool, drop .la filesamdmi32014-07-04