Skip to content

Commit

Permalink
Measure: Add Enter as a shortcut to accept
Browse files Browse the repository at this point in the history
  • Loading branch information
hlorus committed Jul 2, 2023
1 parent 44149df commit 37aa03c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Gui/CommandView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3222,7 +3222,9 @@ void measureCallback(void * ud, SoEventCallback * n)
} else {
dlg->reject();
}

} else if (kbe->getKey() == SoKeyboardEvent::ENTER && kbe->getState() == SoKeyboardEvent::DOWN) {
TaskMeasure *dlg = (TaskMeasure*)Control().activeDialog();
dlg->accept();
}
}
}
Expand Down

0 comments on commit 37aa03c

Please sign in to comment.