mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 05:01:09 +00:00
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:
parent
7cb1030d32
commit
6ff27c34f1
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user