# =====================================================================
# WIKI SYSTEM - modificari in: game.py
# Tasta de deschidere + Shift+H pe item = cauta in wiki.
# Fiecare bloc de mai jos are cateva linii de context (deasupra / dedesubt)
# ca sa gasesti locul. Liniile sunt numerotate dupa fisierul original din Valiant2.
# =====================================================================

# ---------- [1] liniile 505-512 (context 503-514) ----------
                            net.SendItemUsePacket(i)
                            break

    def	__PressHKey(self):
        if app.IsPressed(app.DIK_LCONTROL) or app.IsPressed(app.DIK_RCONTROL):
            net.SendChatPacket("/user_horse_ride")
        else:
            if app.ENABLE_WIKI:
                self.interface.OpenWikiWindow()

    def	__PressBKey(self):
        if app.IsPressed(app.DIK_LCONTROL) or app.IsPressed(app.DIK_RCONTROL):

# ---------- [2] liniile 1265-1272 (context 1263-1274) ----------
        return True

    def ShortcutHotkeys(self, key):
        itemVnum, inventoryType, slotIndex, showTooltip = constInfo.SELECTED_ITEM_VNUM

        if showTooltip:

            if app.IsPressed(app.DIK_LSHIFT) and key == app.DIK_H:
                if self.interface.wndWiki:
                    self.interface.wndWiki.searchItemWithName(itemVnum)
                    return True

