You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Merge pull request #5818 from Johennes/feature/mac-go-home
Fix broken "Go to Home View" shortcut on macOS
This commit is contained in:
@@ -360,11 +360,11 @@ const navigationBindings = (): KeyBinding<NavigationAction>[] => {
|
|||||||
action: NavigationAction.GoToHome,
|
action: NavigationAction.GoToHome,
|
||||||
keyCombo: {
|
keyCombo: {
|
||||||
key: Key.H,
|
key: Key.H,
|
||||||
ctrlOrCmd: true,
|
ctrlKey: true,
|
||||||
altKey: true,
|
altKey: !isMac,
|
||||||
|
shiftKey: isMac,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
action: NavigationAction.SelectPrevRoom,
|
action: NavigationAction.SelectPrevRoom,
|
||||||
keyCombo: {
|
keyCombo: {
|
||||||
|
|||||||
@@ -265,7 +265,7 @@ const shortcuts: Record<Categories, IShortcut[]> = {
|
|||||||
description: _td("Toggle this dialog"),
|
description: _td("Toggle this dialog"),
|
||||||
}, {
|
}, {
|
||||||
keybinds: [{
|
keybinds: [{
|
||||||
modifiers: [CMD_OR_CTRL, Modifiers.ALT],
|
modifiers: [Modifiers.CONTROL, isMac ? Modifiers.SHIFT : Modifiers.ALT],
|
||||||
key: Key.H,
|
key: Key.H,
|
||||||
}],
|
}],
|
||||||
description: _td("Go to Home View"),
|
description: _td("Go to Home View"),
|
||||||
|
|||||||
Reference in New Issue
Block a user