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)
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)
but i don't want the keycode... what i want to say is to prevent a single bind_key from being pushed but allowing all others (since for crown store i can have A,B,C,D etc), example
Ayantir i think JohnnyKing94 would know how to propagate the key get to the "main game"
Example:
my key I is keybinded with Inventory
If i click I, the OnKeyDown Handle catch that key and the inventory does not open.
So, i think he try to propagate the key given by the "function(self, key, ctrl, alt, shift, command)" to the """"Top Level Game""""
There's no way I can think of to do this with the existing code. However, we might be able to change the OnKeyDown, OnKeyUp and OnChar handlers to continue propagating the key if false is returned from the handler. Would that allow you to do what you're trying to do?