From 6190f4f6879d8533bdb97a7baba33773a6d71d6c Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Thu, 7 Feb 2002 10:08:44 +0000 Subject: Emit E_TEP_CAPS for the right values for M-l, M-c, and M-u. 2002-02-07 Christopher James Lahey * 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 --- e-util/e-text-event-processor-emacs-like.c | 6 +++--- e-util/e-text-event-processor-types.h | 10 +++++++++- 2 files changed, 12 insertions(+), 4 deletions(-) (limited to 'e-util') 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 */ -- cgit v1.2.3