Browse Source

when going to decimals field using ./, select it all, so that entry starts from scratch instead of appending to previous value

miguelfreitas
Wladimir J. van der Laan 14 years ago
parent
commit
c92fc340a2
  1. 1
      src/qt/bitcoinamountfield.cpp

1
src/qt/bitcoinamountfield.cpp

@ -62,6 +62,7 @@ bool BitcoinAmountField::eventFilter(QObject *object, QEvent *event)
if(keyEvent->key() == Qt::Key_Period || keyEvent->key() == Qt::Key_Comma) if(keyEvent->key() == Qt::Key_Period || keyEvent->key() == Qt::Key_Comma)
{ {
decimals->setFocus(); decimals->setFocus();
decimals->selectAll();
} }
} }
return false; return false;

Loading…
Cancel
Save