summaryrefslogtreecommitdiff
path: root/src/gui/windows/npcdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/npcdialog.cpp')
-rw-r--r--src/gui/windows/npcdialog.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/windows/npcdialog.cpp b/src/gui/windows/npcdialog.cpp
index 693c92f9f..4ace1d6f8 100644
--- a/src/gui/windows/npcdialog.cpp
+++ b/src/gui/windows/npcdialog.cpp
@@ -761,8 +761,9 @@ bool NpcDialog::isTextInputFocused() const
bool NpcDialog::isInputFocused() const
{
- return mTextField->isFocused() || mIntField->isFocused()
- || mItemList->isFocused();
+ return mTextField->isFocused()
+ || mIntField->isFocused()
+ || mItemList->isFocused();
}
bool NpcDialog::isAnyInputFocused()
@@ -964,6 +965,7 @@ void NpcDialog::placeTextInputControls()
place(2, 4, mClearButton, 2, 1);
place(4, 4, mButton, 2, 1);
}
+ mTextField->requestFocus();
}
void NpcDialog::placeIntInputControls()
@@ -989,6 +991,7 @@ void NpcDialog::placeIntInputControls()
place(2, 4, mClearButton, 2, 1);
place(4, 4, mButton, 2, 1);
}
+ mIntField->requestFocus();
}
void NpcDialog::placeItemInputControls()