summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/tradewindow.cpp5
-rw-r--r--src/gui/tradewindow.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/tradewindow.cpp b/src/gui/tradewindow.cpp
index 8f85f677f..1d3d7ef39 100644
--- a/src/gui/tradewindow.cpp
+++ b/src/gui/tradewindow.cpp
@@ -459,3 +459,8 @@ bool TradeWindow::checkItem(Item *item)
}
return true;
}
+
+bool TradeWindow::isInpupFocused()
+{
+ return (mMoneyField && mMoneyField->isFocused());
+}
diff --git a/src/gui/tradewindow.h b/src/gui/tradewindow.h
index 268d2f108..c917845fc 100644
--- a/src/gui/tradewindow.h
+++ b/src/gui/tradewindow.h
@@ -133,6 +133,8 @@ class TradeWindow : public Window, gcn::ActionListener, gcn::SelectionListener
bool checkItem(Item *item);
+ bool isInpupFocused();
+
private:
enum Status
{