From db37dcd73f3116917584e81a474f70e0d0786bc4 Mon Sep 17 00:00:00 2001 From: David Athay Date: Tue, 13 Jan 2009 12:48:36 +0000 Subject: Added WoW style item adding to chat window. Right Ctrl and Left click to put the item in the chat input. Left click the item link to show a popup description, and click the link again to remove the popup. --- src/gui/inventorywindow.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/gui/inventorywindow.cpp') diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp index 1e3c4084..1765eeea 100644 --- a/src/gui/inventorywindow.cpp +++ b/src/gui/inventorywindow.cpp @@ -51,7 +51,8 @@ InventoryWindow::InventoryWindow(): Window(_("Inventory")), - mSplit(false) + mSplit(false), + mItemDesc(false) { setWindowName("Inventory"); setResizable(false); @@ -200,6 +201,7 @@ void InventoryWindow::keyPressed(gcn::KeyEvent &event) case Key::LEFT_SHIFT: case Key::RIGHT_SHIFT: mSplit = true; + break; } } @@ -210,5 +212,6 @@ void InventoryWindow::keyReleased(gcn::KeyEvent &event) case Key::LEFT_SHIFT: case Key::RIGHT_SHIFT: mSplit = false; + break; } } -- cgit v1.2.3-70-g09d2