Use colemak3 keys

wilder-22.12
Jacopo De Simoi 4 years ago
parent 01af4b090c
commit dcddc3b2aa
  1. 4
      part/pageview.cpp

@ -2081,7 +2081,7 @@ void PageView::keyPressEvent(QKeyEvent *e)
// move/scroll page by using keys // move/scroll page by using keys
switch ( e->key() ) switch ( e->key() )
{ {
case Qt::Key_K: case Qt::Key_E:
case Qt::Key_Down: case Qt::Key_Down:
slotScrollDown( 3 /* go down 1 step */ ); slotScrollDown( 3 /* go down 1 step */ );
break; break;
@ -2101,7 +2101,7 @@ void PageView::keyPressEvent(QKeyEvent *e)
break; break;
case Qt::Key_Left: case Qt::Key_Left:
case Qt::Key_J: case Qt::Key_N:
if (horizontalScrollBar()->maximum() == 0) { if (horizontalScrollBar()->maximum() == 0) {
// if we cannot scroll we go to the previous page vertically // if we cannot scroll we go to the previous page vertically
int next_page = d->document->currentPage() - viewColumns(); int next_page = d->document->currentPage() - viewColumns();

Loading…
Cancel
Save