-
-
Notifications
You must be signed in to change notification settings - Fork 827
Keybinding code unification #3 #7850
Keybinding code unification #3 #7850
Conversation
Signed-off-by: Šimon Brandner <[email protected]>
3c15909
to
7ed7516
Compare
Signed-off-by: Šimon Brandner <[email protected]>
Signed-off-by: Šimon Brandner <[email protected]>
Signed-off-by: Šimon Brandner <[email protected]>
df88b89
to
0cbefdb
Compare
Signed-off-by: Šimon Brandner <[email protected]>
Signed-off-by: Šimon Brandner <[email protected]>
0cbefdb
to
5111a4b
Compare
Hi @SimonBrandner , I'd like to review this, but I'm struggling to understand it fully. Please could explain what it's for and what changes when we merge it? Also, I see that element-web/pull/221132 and this depend on each other - would they need to be released simultaneously, or could we live with a hour or two of only one of these being merged? (If so, which should be merged first? If not, is there a way we can restructure the change so this is possible?) |
Typically with a breaking change refactor, e.g one which changes signatures or enum members, they must land at the same time. |
Yes, sorry for not documenting this in the PR description. I was partially expecting someone with more context to review this but it might not be exactly clear to them either and it's always good to have documentation - I've updated the PR description.
As Micheal said, both need to be merged at the same time otherwise stuff will go awry |
Signed-off-by: Šimon Brandner <[email protected]>
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.
Looks good, but I'm not particularly confident about my review, so I'll leave some time a) for the release to be done and b) for someone else to review if they get a chance.
CloseDialogOrContextMenu = "KeyBinding.closeDialogOrContextMenu", | ||
/** Clicks the selected button */ | ||
ActivateSelectedButton = "KeyBinding.activateSelectedButton", | ||
|
||
/** Toggle visibility of hidden events */ | ||
ToggleHiddenEventVisibility = 'KeyBinding.toggleHiddenEventVisibility', | ||
} | ||
|
||
type IKeyboardShortcuts = { | ||
// TODO: We should figure out what to do with the keyboard shortcuts that are not handled by KeybindingManager |
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.
Is this TODO now done?
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.
No, not really, hopefully the next PR will cover that
…ification-3 Signed-off-by: Šimon Brandner <[email protected]>
Signed-off-by: Šimon Brandner <[email protected]>
OK, let's go for it! |
Type: task
Requires element-hq/element-web#21132
This PR does a few things:
KeybindingManager
for consistency and possible customizability in the futureKeyboardShorctus.ts
workThis change is marked as an internal change (Task), so will not be included in the changelog.
Preview: https://pr7850--matrix-react-sdk.netlify.app
⚠️ Do you trust the author of this PR? Maybe this build will steal your keys or give you malware. Exercise caution. Use test accounts.