Skip to content

Commit 340bff3

Browse files
committed
ui: Better tab order in send coins entry
Pressing <tab> after entering a label now brings the focus to the address entry, instead of the row of buttons. In my experience this is more useful, as I usually want to paste an address after entering the label. The buttons are mostly useless anyway: - Choosing a previously used address should be discouraged - When I'm already using the keyboard the 'paste address' button is useless - just use the Ctrl-V. Maybe it would be an idea to remove it completely - I usually don't want to remove the entry I'm typing now! So makes sense to have it at the end of the tab chain.
1 parent 6e77920 commit 340bff3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/qt/sendcoinsentry.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,12 @@ SendCoinsRecipient SendCoinsEntry::getValue()
155155
QWidget *SendCoinsEntry::setupTabChain(QWidget *prev)
156156
{
157157
QWidget::setTabOrder(prev, ui->payTo);
158-
QWidget::setTabOrder(ui->payTo, ui->addressBookButton);
158+
QWidget::setTabOrder(ui->payTo, ui->addAsLabel);
159+
QWidget *w = ui->payAmount->setupTabChain(ui->addAsLabel);
160+
QWidget::setTabOrder(w, ui->addressBookButton);
159161
QWidget::setTabOrder(ui->addressBookButton, ui->pasteButton);
160162
QWidget::setTabOrder(ui->pasteButton, ui->deleteButton);
161-
QWidget::setTabOrder(ui->deleteButton, ui->addAsLabel);
162-
return ui->payAmount->setupTabChain(ui->addAsLabel);
163+
return ui->deleteButton;
163164
}
164165

165166
void SendCoinsEntry::setValue(const SendCoinsRecipient &value)

0 commit comments

Comments
 (0)