Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def OnKeyDown(self, key):
- if self.interface.wndWeb and self.interface.wndWeb.IsShow():
- return
- if key == app.DIK_ESC:
- self.RequestDropItem(False)
- constInfo.SET_ITEM_QUESTION_DIALOG_STATUS(0)
- if key == app.DIK_TAB and constInfo.wndWarBoard:
- return True
- try:
- self.onPressKeyDict[key]()
- except KeyError:
- pass
- except:
- raise
- return True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement