Changeset 300

Show
Ignore:
Timestamp:
01/07/08 02:17:42 (8 months ago)
Author:
jordi
Message:

Applied patch by Ihar Hrachyshka <ihar.hrachyshka@gmail.com> which adds vim keybindings (h, l, j, k) to scroll the page. This patch also makes the scrolling to change the page when it goes out of the page (either up or down.)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/THANKS

    r299 r300  
    77    - Fábio Antunes <fabio.antunes@hotmail.com>, for his Brazilian Portuguese translation. 
    88    - Fabio Vergnani <monghitri@aruba.it>, for his Italion translation. 
     9    - Ihar Hrachyshka <ihar.hrachyshka@gmail.com>, for his vim keybindings patch. 
    910    - Igor Vagulin <igor_vagulin@mail.ru>, for his Russian translation and patches. 
    1011    - Lester Godwin <lgodwin@pushcorp.com>, for his patches. 
  • trunk/src/gtk/PageView.cxx

    r289 r300  
    573573        case GDK_Left: 
    574574        case GDK_KP_Left: 
     575        case GDK_h: 
    575576            direction = GTK_SCROLL_STEP_LEFT; 
    576577            horizontal = TRUE; 
     
    579580        case GDK_Right: 
    580581        case GDK_KP_Right: 
     582        case GDK_l: 
    581583            horizontal = TRUE; 
    582584            direction = GTK_SCROLL_STEP_RIGHT; 
     
    585587        case GDK_Up: 
    586588        case GDK_KP_Up: 
     589        case GDK_k: 
     590            if ( position == adjustment->lower ) 
     591            { 
     592                pter->scrollToPreviousPage (); 
     593                return TRUE; 
     594            } 
    587595            direction = GTK_SCROLL_STEP_UP; 
    588596            break; 
     
    590598        case GDK_Down: 
    591599        case GDK_KP_Down: 
     600        case GDK_j: 
     601            if ( position == ( adjustment->upper - adjustment->page_size) ) 
     602            { 
     603                pter->scrollToNextPage (); 
     604                return TRUE; 
     605            } 
    592606            direction = GTK_SCROLL_STEP_DOWN; 
    593607            break;