aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2002-02-07 18:08:44 +0800
committerChris Lahey <clahey@src.gnome.org>2002-02-07 18:08:44 +0800
commit6190f4f6879d8533bdb97a7baba33773a6d71d6c (patch)
treee5c83276f246aab113506be439e8761654ce4c1a /e-util
parent2819f70ff28272a58c8e923b7be2731efb490a17 (diff)
downloadgsoc2013-evolution-6190f4f6879d8533bdb97a7baba33773a6d71d6c.tar.gz
gsoc2013-evolution-6190f4f6879d8533bdb97a7baba33773a6d71d6c.tar.zst
gsoc2013-evolution-6190f4f6879d8533bdb97a7baba33773a6d71d6c.zip
Emit E_TEP_CAPS for the right values for M-l, M-c, and M-u.
2002-02-07 Christopher James Lahey <clahey@ximian.com> * gal/util/e-text-event-processor-emacs-like.c: Emit E_TEP_CAPS for the right values for M-l, M-c, and M-u. * gal/util/e-text-event-processor-types.h (ETextEventProcessorCommandAction): New action E_TEP_CAPS. (ETextEventProcessorCaps): New enum giving values for E_TEP_CAPS action. svn path=/trunk/; revision=15589
Diffstat (limited to 'e-util')
-rw-r--r--e-util/e-text-event-processor-emacs-like.c6
-rw-r--r--e-util/e-text-event-processor-types.h10
2 files changed, 12 insertions, 4 deletions
diff --git a/e-util/e-text-event-processor-emacs-like.c b/e-util/e-text-event-processor-emacs-like.c
index 29f1dcfe86..887cfd9e24 100644
--- a/e-util/e-text-event-processor-emacs-like.c
+++ b/e-util/e-text-event-processor-emacs-like.c
@@ -71,7 +71,7 @@ static const ETextEventProcessorCommand alt_keys[26] =
{
{ E_TEP_SELECTION, E_TEP_NOP, 0, "" }, /* a */
{ E_TEP_BACKWARD_WORD, E_TEP_MOVE, 0, "" }, /* b */
- { E_TEP_SELECTION, E_TEP_NOP, 0, "" }, /* c */
+ { E_TEP_SELECTION, E_TEP_CAPS, E_TEP_CAPS_TITLE, "" },/* c */
{ E_TEP_FORWARD_WORD, E_TEP_DELETE, 0, "" }, /* d */
{ E_TEP_SELECTION, E_TEP_NOP, 0, "" }, /* e */
{ E_TEP_FORWARD_WORD, E_TEP_MOVE, 0, "" }, /* f */
@@ -80,7 +80,7 @@ static const ETextEventProcessorCommand alt_keys[26] =
{ E_TEP_SELECTION, E_TEP_NOP, 0, "" }, /* i */
{ E_TEP_SELECTION, E_TEP_NOP, 0, "" }, /* j */
{ E_TEP_SELECTION, E_TEP_NOP, 0, "" }, /* k */
- { E_TEP_SELECTION, E_TEP_NOP, 0, "" }, /* l */
+ { E_TEP_SELECTION, E_TEP_CAPS, E_TEP_CAPS_LOWER, "" }, /* l */
{ E_TEP_SELECTION, E_TEP_NOP, 0, "" }, /* m */
{ E_TEP_SELECTION, E_TEP_NOP, 0, "" }, /* n */
{ E_TEP_SELECTION, E_TEP_NOP, 0, "" }, /* o */
@@ -89,7 +89,7 @@ static const ETextEventProcessorCommand alt_keys[26] =
{ E_TEP_SELECTION, E_TEP_NOP, 0, "" }, /* r */
{ E_TEP_SELECTION, E_TEP_NOP, 0, "" }, /* s */
{ E_TEP_SELECTION, E_TEP_NOP, 0, "" }, /* t */
- { E_TEP_SELECTION, E_TEP_NOP, 0, "" }, /* u */
+ { E_TEP_SELECTION, E_TEP_CAPS, E_TEP_CAPS_UPPER, "" }, /* u */
{ E_TEP_SELECTION, E_TEP_NOP, 0, "" }, /* v */
{ E_TEP_SELECTION, E_TEP_NOP, 0, "" }, /* w */
{ E_TEP_SELECTION, E_TEP_NOP, 0, "" }, /* x */
diff --git a/e-util/e-text-event-processor-types.h b/e-util/e-text-event-processor-types.h
index 3de7292f94..0881438cec 100644
--- a/e-util/e-text-event-processor-types.h
+++ b/e-util/e-text-event-processor-types.h
@@ -69,12 +69,14 @@ typedef enum {
E_TEP_DELETE,
E_TEP_INSERT,
+ E_TEP_CAPS,
+
E_TEP_COPY,
E_TEP_PASTE,
E_TEP_GET_SELECTION,
E_TEP_SET_SELECT_BY_WORD,
E_TEP_ACTIVATE,
-
+
E_TEP_GRAB,
E_TEP_UNGRAB,
@@ -120,6 +122,12 @@ union _ETextEventProcessorEvent {
ETextEventProcessorEventMotion motion;
};
+typedef enum _ETextEventProcessorCaps {
+ E_TEP_CAPS_UPPER,
+ E_TEP_CAPS_LOWER,
+ E_TEP_CAPS_TITLE
+} ETextEventProcessorCaps;
+
#ifdef __cplusplus
}
#endif /* __cplusplus */