[evolution-patches] Patch to fix #271661



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
? 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 <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-02-12  Karsten Br�elmann  <guenther rudersport de>
 
 	* 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){


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]