client/packages/chat/src/hotkeys.ts
Alois 85633a1c81
Some checks failed
/ build-web (push) Successful in 7m53s
/ build-desktop (linux) (push) Successful in 12m24s
/ release (push) Has been cancelled
/ build-mobile (push) Has been cancelled
(feat): add hotkeys
2026-08-02 01:10:05 +02:00

17 lines
532 B
TypeScript

import { defineHotkey } from "@tensamin/hotkeys";
export const editLastMessageHotkey = defineHotkey({
id: "chat.edit-last-message",
name: "Edit last message",
description: "Edit your most recent message when the composer is empty.",
category: "Chat",
defaultBinding: "ArrowUp",
});
export const cancelMessageEditHotkey = defineHotkey({
id: "chat.cancel-message-edit",
name: "Cancel message edit",
description: "Close the message editor without saving changes.",
category: "Chat",
defaultBinding: "Escape",
});