Replace "community" with "space" of keyboard shortcuts (#7994)
This commit is contained in:
parent
d640ac374f
commit
9b2944294c
3 changed files with 14 additions and 14 deletions
|
@ -126,9 +126,9 @@ export enum KeyBindingAction {
|
||||||
/** Opens user settings */
|
/** Opens user settings */
|
||||||
OpenUserSettings = "KeyBinding.openUserSettings",
|
OpenUserSettings = "KeyBinding.openUserSettings",
|
||||||
/** Navigates backward */
|
/** Navigates backward */
|
||||||
PreviousVisitedRoomOrCommunity = "KeyBinding.previousVisitedRoomOrCommunity",
|
PreviousVisitedRoomOrSpace = "KeyBinding.PreviousVisitedRoomOrSpace",
|
||||||
/** Navigates forward */
|
/** Navigates forward */
|
||||||
NextVisitedRoomOrCommunity = "KeyBinding.nextVisitedRoomOrCommunity",
|
NextVisitedRoomOrSpace = "KeyBinding.NextVisitedRoomOrSpace",
|
||||||
|
|
||||||
/** Toggles microphone while on a call */
|
/** Toggles microphone while on a call */
|
||||||
ToggleMicInCall = "KeyBinding.toggleMicInCall",
|
ToggleMicInCall = "KeyBinding.toggleMicInCall",
|
||||||
|
@ -286,8 +286,8 @@ export const CATEGORIES: Record<CategoryName, ICategory> = {
|
||||||
KeyBindingAction.SelectPrevRoom,
|
KeyBindingAction.SelectPrevRoom,
|
||||||
KeyBindingAction.OpenUserSettings,
|
KeyBindingAction.OpenUserSettings,
|
||||||
KeyBindingAction.SwitchToSpaceByNumber,
|
KeyBindingAction.SwitchToSpaceByNumber,
|
||||||
KeyBindingAction.PreviousVisitedRoomOrCommunity,
|
KeyBindingAction.PreviousVisitedRoomOrSpace,
|
||||||
KeyBindingAction.NextVisitedRoomOrCommunity,
|
KeyBindingAction.NextVisitedRoomOrSpace,
|
||||||
],
|
],
|
||||||
}, [CategoryName.AUTOCOMPLETE]: {
|
}, [CategoryName.AUTOCOMPLETE]: {
|
||||||
categoryLabel: _td("Autocomplete"),
|
categoryLabel: _td("Autocomplete"),
|
||||||
|
@ -309,8 +309,8 @@ export const CATEGORIES: Record<CategoryName, ICategory> = {
|
||||||
export const DESKTOP_SHORTCUTS = [
|
export const DESKTOP_SHORTCUTS = [
|
||||||
KeyBindingAction.OpenUserSettings,
|
KeyBindingAction.OpenUserSettings,
|
||||||
KeyBindingAction.SwitchToSpaceByNumber,
|
KeyBindingAction.SwitchToSpaceByNumber,
|
||||||
KeyBindingAction.PreviousVisitedRoomOrCommunity,
|
KeyBindingAction.PreviousVisitedRoomOrSpace,
|
||||||
KeyBindingAction.NextVisitedRoomOrCommunity,
|
KeyBindingAction.NextVisitedRoomOrSpace,
|
||||||
];
|
];
|
||||||
|
|
||||||
export const MAC_ONLY_SHORTCUTS = [
|
export const MAC_ONLY_SHORTCUTS = [
|
||||||
|
@ -627,21 +627,21 @@ export const KEYBOARD_SHORTCUTS: IKeyboardShortcuts = {
|
||||||
},
|
},
|
||||||
displayName: _td("Redo edit"),
|
displayName: _td("Redo edit"),
|
||||||
},
|
},
|
||||||
[KeyBindingAction.PreviousVisitedRoomOrCommunity]: {
|
[KeyBindingAction.PreviousVisitedRoomOrSpace]: {
|
||||||
default: {
|
default: {
|
||||||
metaKey: isMac,
|
metaKey: isMac,
|
||||||
altKey: !isMac,
|
altKey: !isMac,
|
||||||
key: isMac ? Key.SQUARE_BRACKET_LEFT : Key.ARROW_LEFT,
|
key: isMac ? Key.SQUARE_BRACKET_LEFT : Key.ARROW_LEFT,
|
||||||
},
|
},
|
||||||
displayName: _td("Previous recently visited room or community"),
|
displayName: _td("Previous recently visited room or space"),
|
||||||
},
|
},
|
||||||
[KeyBindingAction.NextVisitedRoomOrCommunity]: {
|
[KeyBindingAction.NextVisitedRoomOrSpace]: {
|
||||||
default: {
|
default: {
|
||||||
metaKey: isMac,
|
metaKey: isMac,
|
||||||
altKey: !isMac,
|
altKey: !isMac,
|
||||||
key: isMac ? Key.SQUARE_BRACKET_RIGHT : Key.ARROW_RIGHT,
|
key: isMac ? Key.SQUARE_BRACKET_RIGHT : Key.ARROW_RIGHT,
|
||||||
},
|
},
|
||||||
displayName: _td("Next recently visited room or community"),
|
displayName: _td("Next recently visited room or space"),
|
||||||
},
|
},
|
||||||
[KeyBindingAction.SwitchToSpaceByNumber]: {
|
[KeyBindingAction.SwitchToSpaceByNumber]: {
|
||||||
default: {
|
default: {
|
||||||
|
|
|
@ -529,11 +529,11 @@ class LoggedInView extends React.Component<IProps, IState> {
|
||||||
unread: true,
|
unread: true,
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case KeyBindingAction.PreviousVisitedRoomOrCommunity:
|
case KeyBindingAction.PreviousVisitedRoomOrSpace:
|
||||||
PlatformPeg.get().navigateForwardBack(true);
|
PlatformPeg.get().navigateForwardBack(true);
|
||||||
handled = true;
|
handled = true;
|
||||||
break;
|
break;
|
||||||
case KeyBindingAction.NextVisitedRoomOrCommunity:
|
case KeyBindingAction.NextVisitedRoomOrSpace:
|
||||||
PlatformPeg.get().navigateForwardBack(false);
|
PlatformPeg.get().navigateForwardBack(false);
|
||||||
handled = true;
|
handled = true;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -3322,8 +3322,8 @@
|
||||||
"Jump to last message": "Jump to last message",
|
"Jump to last message": "Jump to last message",
|
||||||
"Undo edit": "Undo edit",
|
"Undo edit": "Undo edit",
|
||||||
"Redo edit": "Redo edit",
|
"Redo edit": "Redo edit",
|
||||||
"Previous recently visited room or community": "Previous recently visited room or community",
|
"Previous recently visited room or space": "Previous recently visited room or space",
|
||||||
"Next recently visited room or community": "Next recently visited room or community",
|
"Next recently visited room or space": "Next recently visited room or space",
|
||||||
"Switch to space by number": "Switch to space by number",
|
"Switch to space by number": "Switch to space by number",
|
||||||
"Open user settings": "Open user settings",
|
"Open user settings": "Open user settings",
|
||||||
"Close dialog or context menu": "Close dialog or context menu",
|
"Close dialog or context menu": "Close dialog or context menu",
|
||||||
|
|
Loading…
Reference in a new issue