diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-04-03 02:29:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-04-03 02:29:24 +0300 |
commit | 51ff8587d3a008e9c4867b18034640f58063d4a8 (patch) | |
tree | 978011f13f74e99270669dae5c600218af6209d6 /src/gui/npcdialog.cpp | |
parent | 5e4a1bf239d76a5525a4409dc7a2094fbffe0eb3 (diff) | |
download | plus-51ff8587d3a008e9c4867b18034640f58063d4a8.tar.gz plus-51ff8587d3a008e9c4867b18034640f58063d4a8.tar.bz2 plus-51ff8587d3a008e9c4867b18034640f58063d4a8.tar.xz plus-51ff8587d3a008e9c4867b18034640f58063d4a8.zip |
Fix npc menu item selection with keyboard.
Diffstat (limited to 'src/gui/npcdialog.cpp')
-rw-r--r-- | src/gui/npcdialog.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/npcdialog.cpp b/src/gui/npcdialog.cpp index 39af0c71d..5e0e9d56f 100644 --- a/src/gui/npcdialog.cpp +++ b/src/gui/npcdialog.cpp @@ -94,6 +94,9 @@ NpcDialog::NpcDialog(int npcId) : // Setup listbox mItemList = new ListBox(this); mItemList->setWrappingEnabled(true); + mItemList->setActionEventId("ok"); + mItemList->addActionListener(this); + setContentSize(260, 175); mListScrollArea = new ScrollArea(mItemList); |