pspp-sheet-view: Enable Home and End in sheet.
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 10 Nov 2012 22:11:55 +0000 (14:11 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 10 Nov 2012 22:11:55 +0000 (14:11 -0800)
However, they go to the top and bottom.

src/ui/gui/pspp-sheet-view.c

index be1be518b23506c516235339ba9b5ef7b008d8ef..a69ca32937fdfcb04e4bb933a9aa83012e06b797 100644 (file)
@@ -12275,11 +12275,13 @@ pspp_sheet_view_event (GtkWidget *widget,
       switch (event->keyval)
         {
         case GDK_Left:      case GDK_KP_Left:
+        case GDK_Home:      case GDK_KP_Home:
           if (!is_all_selected (widget) && !is_at_left (widget))
             return FALSE;
           break;
 
         case GDK_Right:     case GDK_KP_Right:
+        case GDK_End:       case GDK_KP_End:
           if (!is_all_selected (widget) && !is_at_right (widget))
             return FALSE;
           break;