Skip to content

Commit

Permalink
ENH: Data edtior Enter/Return key jump to next row (#5181)
Browse files Browse the repository at this point in the history
  • Loading branch information
shun2wang authored and JorisGoosen committed Aug 30, 2023
1 parent f83112b commit 0c77742
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Desktop/components/JASP/Widgets/DataTableView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,9 @@ FocusScope
case Qt.Key_Backtab: if(colI > 0) { arrowPressed = true; arrowIndex = Qt.point(colI - 1, rowI); shiftPressed = false; } break;
case Qt.Key_Tab: if(colI < dataTableView.view.columnCount() - 1) { arrowPressed = true; arrowIndex = Qt.point(colI + 1, rowI); } break;

case Qt.Key_Return:
case Qt.Key_Enter: if(rowI < dataTableView.view.rowCount() - 1) { arrowPressed = true; arrowIndex = Qt.point(colI, rowI + 1); } break;


}

Expand Down

0 comments on commit 0c77742

Please sign in to comment.