You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I understand correctly, if I put explicitly message = nil in the function call then it still shift the arguments, which might lead to unexpected behavior. For example if I call hotkey:bind(mods, key, nil, f1, f2, f3), it shift pressedfn to nil, releasedfn to f1 and repeatfn to f2.
ifmessage==nilorgetFunc(message) thenrepeatfn=releasedfnreleasedfn=pressedfnpressedfn=messagemessage=nil-- shift down argumentsend
If I understand correctly, if I put explicitly
message = nil
in the function call then it still shift the arguments, which might lead to unexpected behavior. For example if I callhotkey:bind(mods, key, nil, f1, f2, f3)
, it shiftpressedfn
to nil,releasedfn
to f1 andrepeatfn
to f2.link to code
The text was updated successfully, but these errors were encountered: