Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

feat(new-channels): add G hotkey for go to bottom (#2099)

teo367553c69e7a
diff --git a/js/app/packages/channel/Channel/create-channel-hotkeys.ts b/js/app/packages/channel/Channel/create-channel-hotkeys.ts
index 9aa36e1285..55ddff9d95 100644
--- a/js/app/packages/channel/Channel/create-channel-hotkeys.ts
+++ b/js/app/packages/channel/Channel/create-channel-hotkeys.ts
@@ -68,6 +68,19 @@ export function createChannelHotkeys(options: CreateChannelHotkeysOptions) {
},
});
+ registerHotkey({
+ scopeId: messageListScope,
+ hotkey: 'shift+g',
+ description: 'Go to latest message',
+ keyDownHandler: () => {
+ options.selection.clear();
+ const id = options.selection.selectPrevious();
+ if (!id) return false;
+ options.navigation()?.scrollToId(id, { align: 'end' });
+ return true;
+ },
+ });
+
registerHotkey({
scopeId: messageListScope,
hotkey: 'enter',