Skip to content

Commit

Permalink
ScaleSliderQWidget: use Alt, not Ctrl, to revert to default
Browse files Browse the repository at this point in the history
- ctrl-click reverts the value to default:
6691211
bf64402a95
- but ctrl-click is already used for fine-tuning!
- use Alt instead
  • Loading branch information
devernay committed Aug 23, 2016
1 parent da3d099 commit a003a17
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Gui/ScaleSliderQWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,13 @@ void
ScaleSliderQWidget::mousePressEvent(QMouseEvent* e)
{
if (!_imp->readOnly) {
if ( modifierHasControl(e) ) {
// Ctrl+click cannot be used to reset to default, because Ctrl is already used for fine-tuning
// (fine-tuning is not possible in Nuke)!
// same goes for Shift+click.
// we use Alt instead (Nuke uses Ctrl).
// @see ScaleSliderQWidget::keyPressEvent()
//
if ( modifierHasAlt(e) ) {
Q_EMIT resetToDefaultRequested();
} else {
QPoint newClick = e->pos();
Expand Down

0 comments on commit a003a17

Please sign in to comment.