Advertisement
Guest User

Untitled

a guest
Dec 11th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. def OnKeyDown(self, key):
  2. if self.interface.wndWeb and self.interface.wndWeb.IsShow():
  3. return
  4.  
  5. if key == app.DIK_ESC:
  6. self.RequestDropItem(False)
  7. constInfo.SET_ITEM_QUESTION_DIALOG_STATUS(0)
  8.  
  9. if key == app.DIK_TAB and constInfo.wndWarBoard:
  10. return True
  11.  
  12. try:
  13. self.onPressKeyDict[key]()
  14. except KeyError:
  15. pass
  16. except:
  17. raise
  18.  
  19. return True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement