Skip to content

Commit

Permalink
Merge pull request #117 from mcorteel/patch-1
Browse files Browse the repository at this point in the history
Add ctrl+Return shortcut to mark item as complete
  • Loading branch information
Zren committed Nov 20, 2017
2 parents 89f8794 + 86a5d41 commit bc047f8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions todolist/package/contents/ui/TodoItemDelegate.qml
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,9 @@ MouseArea {
event.accepted = true
// nextItemInFocusChain().nextItemInFocusChain().focus = true
listView.currentIndex = index + 1
} else if (event.key == Qt.Key_Return && event.modifiers == Qt.ControlModifier) {
event.accepted = true
setComplete(true);
} else if (event.key == Qt.Key_Up && event.modifiers == Qt.ControlModifier) {
event.accepted = true
if (index > 0) {
Expand Down

0 comments on commit bc047f8

Please sign in to comment.