Patch to fix #271661
Li Yuan <[email protected]>
| Newsgroups | gmane.comp.gnome.evolution.patches |
|---|---|
| Message-ID | <[email protected]> |
Hi, Here is a new patch to fix #271661, which makes e-text and e-cell-text support sun type6 keyboard's copy, cut and paste keys. Regards, Li _______________________________________________ Evolution-patches mailing list [email protected] http://mail.gnome.org/mailman/listinfo/evolution-patches
apr7-271661.diff
(text/x-patch, 1.6 KB)
? e-system.error Index: ChangeLog =================================================================== RCS file: /cvs/gnome/evolution/e-util/ChangeLog,v retrieving revision 1.587 diff -u -r1.587 ChangeLog --- ChangeLog 12 Feb 2006 23:15:22 -0000 1.587 +++ ChangeLog 7 Apr 2006 03:23:16 -0000 @@ -1,3 +1,10 @@ +2006-04-07 Li Yuan <[email protected]> + + * 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-02-12 Karsten Bräckelmann <[email protected]> * e-error.c (e_error_newv): Index: e-text-event-processor-emacs-like.c =================================================================== RCS file: /cvs/gnome/evolution/e-util/e-text-event-processor-emacs-like.c,v retrieving revision 1.22 diff -u -r1.22 e-text-event-processor-emacs-like.c --- e-text-event-processor-emacs-like.c 8 Feb 2006 11:43:02 -0000 1.22 +++ e-text-event-processor-emacs-like.c 7 Apr 2006 03:23:16 -0000 @@ -270,6 +270,22 @@ /* 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){