New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
client.keys: callable table? #3194
Comments
Seems like 296ad18, although I am not quite sure what it actually creates. It seems like the call itself just creates @blueyed Could you describe your actual problem? I am not quite sure, but I would guess that you saying that |
Correct. Quite easy to address/fix in my config, but would be better if it would just keep working I guess. |
Can you describe what broke? I guess my unit tests were not good enough, but I put quite a lot of effort into re-implementing the old behavior. What was done
Why it was done1: Mixing old and new property style is inconsistentOne of the common problem users have is due to API inconsistencies. For example, we have the client 2: ModularityOne of the project I had ongoing for a while is the push toward modularity. This is implemented in 2 main ways. First of all, following your early work on this, the Not only is it hard to enable/disable/add/remove specific keybindings, but the API was also lossy. Because In an attempt to preserve backward compatibility, a 3: Modernizing the input APIsWith the 4: IntrospectionOne of the big roadblock @actionless has when he improves the hotkey popup is that the way we "track" what key do what was a total mess. There was some hardcoded "record this stuff here cuz it's gonna get destroyed when this function returns" style of nonsense. With |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This snippet is broken now, since Note that there is still |
@blueyed Umm, I am still not sure what broke, The only know thing that change is
It is both a property and method, just like There was more commits that I havn't got merged that also did this to The reason why the key and button one is merged was because it was necessary in order to merge |
@blueyed is there any piece of previously published API doc which declares the behavior which got changed but you still expecting it? |
I've noticed that
client.keys
was changed from a function to a table in Git master (for 4.4), and wondered if this a) was intentional really (likely), but b) more importantly if it could be kept working like before by having a "callable table"?/cc @Elv13 (just guessing, have not investigated / git-blamed etc)
The text was updated successfully, but these errors were encountered: