diff options
author | Andrei Karas <akaras@inbox.ru> | 2010-11-18 21:01:13 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2010-11-29 22:44:48 +0200 |
commit | 2af31544b36b803f066100780d9cfc1c2b5d543a (patch) | |
tree | 2830ab3d223df8f5787eb563ef03fee469f06601 /src/gui/npcdialog.cpp | |
parent | 1f69108501c4bf51f3adac9ffbf7a7631fb12b9a (diff) | |
download | mana-2af31544b36b803f066100780d9cfc1c2b5d543a.tar.gz mana-2af31544b36b803f066100780d9cfc1c2b5d543a.tar.bz2 mana-2af31544b36b803f066100780d9cfc1c2b5d543a.tar.xz mana-2af31544b36b803f066100780d9cfc1c2b5d543a.zip |
Allow enter OK button key in input field.
By default OK shortcut is space key.
Reviewed-by: Jaxad0127, Kage
Diffstat (limited to 'src/gui/npcdialog.cpp')
-rw-r--r-- | src/gui/npcdialog.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/npcdialog.cpp b/src/gui/npcdialog.cpp index 6d3995a7..c4128588 100644 --- a/src/gui/npcdialog.cpp +++ b/src/gui/npcdialog.cpp @@ -299,6 +299,11 @@ void NpcDialog::textRequest(const std::string &defaultText) buildLayout(); } +bool NpcDialog::isTextInputFocused() const +{ + return mTextField->isFocused(); +} + bool NpcDialog::isInputFocused() const { return mTextField->isFocused() || mIntField->isFocused(); |