From aeec9ca9881bbd4fdc332b342b09a795ee3961b4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 12 Jul 2013 20:11:09 +0300 Subject: add ability to show assigned keys in browserbox. Example: This is chat modifier key: ###ChatMod;. If chat mod key is left shift, it will show: "This is chat modifier key: left shift." --- src/gui/npcdialog.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gui/npcdialog.cpp') diff --git a/src/gui/npcdialog.cpp b/src/gui/npcdialog.cpp index be2404875..03e0006b5 100644 --- a/src/gui/npcdialog.cpp +++ b/src/gui/npcdialog.cpp @@ -133,6 +133,7 @@ NpcDialog::NpcDialog(const int npcId) : mTextBox->setMaxRow(config.getIntValue("ChatLogLength")); mTextBox->setLinkHandler(mItemLinkHandler); mTextBox->setFont(gui->getNpcFont()); + mTextBox->setEnableKeys(true); mScrollArea->setHorizontalScrollPolicy(gcn::ScrollArea::SHOW_NEVER); mScrollArea->setVerticalScrollPolicy(gcn::ScrollArea::SHOW_ALWAYS); -- cgit v1.2.3-70-g09d2