Added M-p and M-n key equivalents for up and down keys. Just for us Emacs

1998-02-19  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* gtk/gtkcombo.c (gtk_combo_entry_key_press): Added M-p and M-n
	key equivalents for up and down keys.  Just for us Emacs weenies :-)
This commit is contained in:
Federico Mena Quintero 1998-02-19 20:22:51 +00:00 committed by Arturo Espinosa
parent 7cb1030d32
commit 6ff27c34f1
8 changed files with 41 additions and 2 deletions

View File

@ -1,3 +1,8 @@
1998-02-19 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkcombo.c (gtk_combo_entry_key_press): Added M-p and M-n
key equivalents for up and down keys. Just for us Emacs weenies :-)
Thu Feb 19 12:18:24 1998 Owen Taylor <owt1@cornell.edu> Thu Feb 19 12:18:24 1998 Owen Taylor <owt1@cornell.edu>
* gtk/testgtk.c : Use POINTER_MOTION_HINT when dragging * gtk/testgtk.c : Use POINTER_MOTION_HINT when dragging

View File

@ -1,3 +1,8 @@
1998-02-19 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkcombo.c (gtk_combo_entry_key_press): Added M-p and M-n
key equivalents for up and down keys. Just for us Emacs weenies :-)
Thu Feb 19 12:18:24 1998 Owen Taylor <owt1@cornell.edu> Thu Feb 19 12:18:24 1998 Owen Taylor <owt1@cornell.edu>
* gtk/testgtk.c : Use POINTER_MOTION_HINT when dragging * gtk/testgtk.c : Use POINTER_MOTION_HINT when dragging

View File

@ -1,3 +1,8 @@
1998-02-19 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkcombo.c (gtk_combo_entry_key_press): Added M-p and M-n
key equivalents for up and down keys. Just for us Emacs weenies :-)
Thu Feb 19 12:18:24 1998 Owen Taylor <owt1@cornell.edu> Thu Feb 19 12:18:24 1998 Owen Taylor <owt1@cornell.edu>
* gtk/testgtk.c : Use POINTER_MOTION_HINT when dragging * gtk/testgtk.c : Use POINTER_MOTION_HINT when dragging

View File

@ -1,3 +1,8 @@
1998-02-19 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkcombo.c (gtk_combo_entry_key_press): Added M-p and M-n
key equivalents for up and down keys. Just for us Emacs weenies :-)
Thu Feb 19 12:18:24 1998 Owen Taylor <owt1@cornell.edu> Thu Feb 19 12:18:24 1998 Owen Taylor <owt1@cornell.edu>
* gtk/testgtk.c : Use POINTER_MOTION_HINT when dragging * gtk/testgtk.c : Use POINTER_MOTION_HINT when dragging

View File

@ -1,3 +1,8 @@
1998-02-19 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkcombo.c (gtk_combo_entry_key_press): Added M-p and M-n
key equivalents for up and down keys. Just for us Emacs weenies :-)
Thu Feb 19 12:18:24 1998 Owen Taylor <owt1@cornell.edu> Thu Feb 19 12:18:24 1998 Owen Taylor <owt1@cornell.edu>
* gtk/testgtk.c : Use POINTER_MOTION_HINT when dragging * gtk/testgtk.c : Use POINTER_MOTION_HINT when dragging

View File

@ -1,3 +1,8 @@
1998-02-19 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkcombo.c (gtk_combo_entry_key_press): Added M-p and M-n
key equivalents for up and down keys. Just for us Emacs weenies :-)
Thu Feb 19 12:18:24 1998 Owen Taylor <owt1@cornell.edu> Thu Feb 19 12:18:24 1998 Owen Taylor <owt1@cornell.edu>
* gtk/testgtk.c : Use POINTER_MOTION_HINT when dragging * gtk/testgtk.c : Use POINTER_MOTION_HINT when dragging

View File

@ -1,3 +1,8 @@
1998-02-19 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkcombo.c (gtk_combo_entry_key_press): Added M-p and M-n
key equivalents for up and down keys. Just for us Emacs weenies :-)
Thu Feb 19 12:18:24 1998 Owen Taylor <owt1@cornell.edu> Thu Feb 19 12:18:24 1998 Owen Taylor <owt1@cornell.edu>
* gtk/testgtk.c : Use POINTER_MOTION_HINT when dragging * gtk/testgtk.c : Use POINTER_MOTION_HINT when dragging

View File

@ -104,7 +104,9 @@ gtk_combo_entry_key_press (GtkEntry * entry, GdkEventKey * event, GtkCombo * com
return FALSE; return FALSE;
li = g_list_find (GTK_LIST (combo->list)->children, gtk_combo_find (combo)); li = g_list_find (GTK_LIST (combo->list)->children, gtk_combo_find (combo));
if (event->keyval == GDK_Up || event->keyval == GDK_KP_Up) if ((event->keyval == GDK_Up)
|| (event->keyval == GDK_KP_Up)
|| ((event->state & GDK_MOD1_MASK) && ((event->keyval == 'p') || (event->keyval == 'P'))))
{ {
if (li) if (li)
li = li->prev; li = li->prev;
@ -119,7 +121,9 @@ gtk_combo_entry_key_press (GtkEntry * entry, GdkEventKey * event, GtkCombo * com
return TRUE; return TRUE;
} }
} }
else if (event->keyval == GDK_Down || event->keyval == GDK_KP_Down) else if ((event->keyval == GDK_Down)
|| (event->keyval == GDK_KP_Down)
|| ((event->state & GDK_MOD1_MASK) && ((event->keyval == 'n') || (event->keyval == 'N'))))
{ {
if (li) if (li)
li = li->next; li = li->next;