Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Refactor ActionMap and Command to use ActionIDs #17162
Refactor ActionMap and Command to use ActionIDs #17162
Changes from 1 commit
90627b3
9dff28f
8bcbd0b
052d063
8cc82de
642d0ab
66fe08f
2bb1b6c
be193b2
db528c9
7c907fe
b43191d
2093660
6c32539
eccd87f
44510dc
10d1fc8
71bf90f
d57c7a1
5c2307c
9fc6972
dca7df5
dd25ed7
6e293a5
af2d22f
bdf42c2
12f3aa9
aa49212
5ee630e
360b92e
5e70911
ca3eb87
85933e2
c134402
22ab936
0a3e17e
e28d478
f425746
d0938e2
12a61c5
f1633e0
ddfac90
3e7ab38
ae16a5e
dc874c3
936afd6
b3e9c26
5a1b822
c51558f
754bf04
2f1d8d2
2b4aeb2
e62dfa2
e725f1e
db00b90
3d92f27
428821b
6437b9f
4c744e6
ca4015f
45cfcd6
3c6015d
c2c75c8
3e601f5
cdb907d
f35bf20
2b16acd
193e573
0480d65
02a1e37
80fc299
ebc03e9
ccf1cc9
7793c5c
abef25d
4d35c14
3e31bda
14d83b5
6c6dd46
b88a8c5
9703815
a80316d
625753c
406312f
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the left side disallows commands with nested commands . . . the right side doesn't. is that OK?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, is it just because all commands with nested commands are invalid, so we need to exclude them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new
_ActionMap
does not store nested commands to begin with (those are only stored in_NestedCommands
), so this is now an unnecessary checkThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
huh okay so if we unbind a key, then it's still in the keymap, but bound to the action ID
""
, which then doesn't resolve to an actual actionThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep! So previously an unbound key was bound to an actual
Command
object with action typeInvalid
, now the keybinding is just bound to an empty IDThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'm not gonna overindex on this, cause #17215 is right there and gets rid of this whole thing