Permalink
Browse files

Navigation to the first and the last files

Adding handlers for keys 'Home' and 'End', their pressing will result in navigation to the first and the last files respectively. Reusing existing functions vnr_window_first() and vnr_window_last().
  • Loading branch information...
maxaykin committed Sep 26, 2017
1 parent 1c83094 commit c8ab39bd371fa9580bea14f205f5020f1fad6aaa
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/vnr-window.c
View
@@ -1944,6 +1944,14 @@ vnr_window_key_press (GtkWidget *widget, GdkEventKey *event)
vnr_window_prev(window);
result = TRUE;
break;
case GDK_KEY_Home:
vnr_window_first(window);
result = TRUE;
break;
case GDK_KEY_End:
vnr_window_last(window);
result = TRUE;
break;
case 'h':
vnr_window_cmd_flip_horizontal(NULL, window);
break;

0 comments on commit c8ab39b

Please sign in to comment.