diff options
author | Li Yuan <li.yuan@sun.com> | 2006-04-26 18:22:21 +0800 |
---|---|---|
committer | Li Yuan <liyuan@src.gnome.org> | 2006-04-26 18:22:21 +0800 |
commit | f187345034c97223eaf23903972e7a9f1b86b5f0 (patch) | |
tree | cc8283ea696a29578c9f81d02e9fbad6d319a236 /e-util | |
parent | 17e044f8258f1a1ed06acd2352a5890f962c3cc3 (diff) | |
download | gsoc2013-evolution-f187345034c97223eaf23903972e7a9f1b86b5f0.tar.gz gsoc2013-evolution-f187345034c97223eaf23903972e7a9f1b86b5f0.tar.zst gsoc2013-evolution-f187345034c97223eaf23903972e7a9f1b86b5f0.zip |
Handle SUN Type 6 keyboard's copy, paste and cut key. Fix #271661.
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.
svn path=/trunk/; revision=31903
Diffstat (limited to 'e-util')
-rw-r--r-- | e-util/ChangeLog | 7 | ||||
-rw-r--r-- | e-util/e-text-event-processor-emacs-like.c | 16 |
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){ |