aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
Diffstat (limited to 'e-util')
-rw-r--r--e-util/ChangeLog7
-rw-r--r--e-util/e-text-event-processor-emacs-like.c16
2 files changed, 23 insertions, 0 deletions
diff --git a/e-util/ChangeLog b/e-util/ChangeLog
index 09a90bfe8e..c4feb62919 100644
--- a/e-util/ChangeLog
+++ b/e-util/ChangeLog
@@ -1,3 +1,10 @@
+2006-04-26 Li Yuan <li.yuan@sun.com>
+
+ * e-text-event-processor-emacs-like.c:
+ (e_text_event_processor_emacs_like_event):
+ Handle SUN Type 6 keyboard's copy, paste and cut key.
+ Fix #271661.
+
2006-03-27 Tor Lillqvist <tml@novell.com>
* e-util.c (fix_percent_l): [Win32] Instead of %l (which is a GNU
diff --git a/e-util/e-text-event-processor-emacs-like.c b/e-util/e-text-event-processor-emacs-like.c
index 41bfcf4545..b04ae724f5 100644
--- a/e-util/e-text-event-processor-emacs-like.c
+++ b/e-util/e-text-event-processor-emacs-like.c
@@ -270,6 +270,22 @@ e_text_event_processor_emacs_like_event (ETextEventProcessor *tep, ETextEventPro
/* gtk_toggle_insert(text) -- IMPLEMENT -- FIXME */
}
break;
+ case GDK_F16:
+ command.action = E_TEP_COPY;
+ command.position = E_TEP_SELECTION;
+ break;
+ case GDK_F18:
+ command.action = E_TEP_PASTE;
+ command.position = E_TEP_SELECTION;
+ break;
+ case GDK_F20:
+ command.action = E_TEP_COPY;
+ command.position = E_TEP_SELECTION;
+ g_signal_emit_by_name (tep, "command", &command);
+
+ command.action = E_TEP_DELETE;
+ command.position = E_TEP_SELECTION;
+ break;
case GDK_Delete:
case GDK_KP_Delete:
if (key.state & GDK_CONTROL_MASK){