From f187345034c97223eaf23903972e7a9f1b86b5f0 Mon Sep 17 00:00:00 2001 From: Li Yuan Date: Wed, 26 Apr 2006 10:22:21 +0000 Subject: Handle SUN Type 6 keyboard's copy, paste and cut key. Fix #271661. 2006-04-26 Li Yuan * 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. svn path=/trunk/; revision=31903 --- e-util/ChangeLog | 7 +++++++ e-util/e-text-event-processor-emacs-like.c | 16 ++++++++++++++++ 2 files changed, 23 insertions(+) (limited to 'e-util') 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 + + * 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 * 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){ -- cgit v1.2.3