View Single Post
05/25/15, 12:16 PM   #2
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,019
Originally Posted by JohnnyKing94 View Post
I want to know why with with the handler onkeydown there is no such propagation of the other binding events when i click any other keys that is not the "A" key??? what am i doing wrong?


Code:
MyPanel:SetHandler("OnKeyDown", function(self, key, ctrl, alt, shift, command) 
   if( key =="A")
      RUNNING NEXT LEVEL
   end
end)
http://wiki.esoui.com/Globals#KeyCode

Lua Code:
  1. if( key == KEY_A )
  Reply With Quote